diff options
author | Klaus Purer <klaus.purer@protonmail.ch> | 2020-07-11 13:19:45 +0200 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2020-09-25 12:10:41 -0400 |
commit | 44da726d08ff20a67ae8f3845b0008269e1a2076 (patch) | |
tree | d70c83450d71b51f6a15d9a552cc3d5d2d6c013e /src/mastodon_client.rs | |
parent | 4afb3c3d7405c496857415920afd04d2db01c987 (diff) |
feat(media): Add support for media alt text
Diffstat (limited to 'src/mastodon_client.rs')
-rw-r--r-- | src/mastodon_client.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mastodon_client.rs b/src/mastodon_client.rs index f65eda7..98d2cc3 100644 --- a/src/mastodon_client.rs +++ b/src/mastodon_client.rs @@ -3,6 +3,7 @@ use std::borrow::Cow; use crate::entities::prelude::*; use crate::errors::Result; use crate::http_send::{HttpSend, HttpSender}; +use crate::media_builder::MediaBuilder; use crate::page::Page; use crate::requests::{ AddFilterRequest, @@ -113,7 +114,7 @@ pub trait MastodonClient<H: HttpSend = HttpSender> { unimplemented!("This method was not implemented"); } /// POST /api/v1/media - fn media(&self, file: Cow<'static, str>) -> Result<Attachment> { + fn media(&self, media_builder: MediaBuilder) -> Result<Attachment> { unimplemented!("This method was not implemented"); } /// POST /api/v1/notifications/clear |