pub struct EmojisHandler<'a> { /* private fields */ }Expand description
Handler for custom emoji API endpoints.
Implementations§
Source§impl<'a> EmojisHandler<'a>
impl<'a> EmojisHandler<'a>
Sourcepub fn new(client: &'a MastodonClient) -> Self
pub fn new(client: &'a MastodonClient) -> Self
Creates a new EmojisHandler for the given client.
Parameters:
client: The client to use for making requests.
Returns:
EmojisHandler: The created emojis handler.
Sourcepub async fn list(&self) -> Result<Vec<CustomEmoji>>
pub async fn list(&self) -> Result<Vec<CustomEmoji>>
Fetches all custom emojis available on the instance.
Returns:
Result<Vec<CustomEmoji>>: The fetched custom emojis.
Corresponds to GET /api/v1/custom_emojis.
Auto Trait Implementations§
impl<'a> Freeze for EmojisHandler<'a>
impl<'a> !RefUnwindSafe for EmojisHandler<'a>
impl<'a> Send for EmojisHandler<'a>
impl<'a> Sync for EmojisHandler<'a>
impl<'a> Unpin for EmojisHandler<'a>
impl<'a> !UnwindSafe for EmojisHandler<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more