Files
oolatoocs/src/twitter.rs
2023-11-08 10:00:34 +01:00

21 lines
541 B
Rust

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)
}