ready to roll

This commit is contained in:
VC
2023-11-08 10:00:34 +01:00
parent 5126083dc4
commit bf70072376
2 changed files with 33 additions and 4 deletions

20
src/twitter.rs Normal file
View File

@@ -0,0 +1,20 @@
use serde::{Deserialize, Serialize};
use std::error::Error;
#[derive(Serialize, Debug)]
pub struct Tweet {}
#[derive(Deserialize, Debug)]
pub struct TweetResponse {}
/// This function uploads media from Mastodon to Twitter and returns the media id from Twitter
#[allow(dead_code)]
pub async fn upload_media(_u: &str) -> Result<u64, Box<dyn Error>> {
Ok(0)
}
/// This posts Tweets with all the associated medias
#[allow(dead_code)]
pub async fn post_tweet(_content: &str, _medias: &[u64]) -> Result<u64, Box<dyn Error>> {
Ok(0)
}