mirror of
https://framagit.org/veretcle/oolatoocs.git
synced 2025-07-20 12:31:18 +02:00
21 lines
541 B
Rust
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)
|
|
}
|