tamerelol

This commit is contained in:
VC
2023-11-11 12:59:57 +01:00
parent b0c9485c82
commit 6d208f3de3

View File

@@ -89,22 +89,6 @@ struct UploadMediaCommand {
media_id: String, media_id: String,
} }
#[derive(Deserialize, Debug)]
struct UploadMediaResponse {
media_id: u64,
}
#[derive(Serialize, Debug)]
struct MediaMetadata {
media_id: u64,
alt_text: MediaMetadataAltText,
}
#[derive(Serialize, Debug)]
struct MediaMetadataAltText {
text: String,
}
/// This function returns the OAuth1 Token object from TwitterConfig /// This function returns the OAuth1 Token object from TwitterConfig
fn get_token(config: &TwitterConfig) -> Token { fn get_token(config: &TwitterConfig) -> Token {
oauth1_request::Token::from_parts( oauth1_request::Token::from_parts(