[][src]Struct misskey_util::builder::EmojiUpdateBuilder

pub struct EmojiUpdateBuilder<C> { /* fields omitted */ }

Builder for the update_emoji method.

Implementations

impl<C> EmojiUpdateBuilder<C>[src]

pub fn new(client: C, emoji: Emoji) -> Self[src]

This is supported on crate feature 12-9-0 only.

Creates a builder with the client and the emoji you are going to update.

pub fn as_request(&self) -> &Request[src]

Gets the request object for reuse.

pub fn name(&mut self, name: impl Into<String>) -> &mut Self[src]

Sets the name of the custom emoji.

pub fn set_category(&mut self, category: impl Into<String>) -> &mut Self[src]

Sets the category of the custom emoji.

pub fn delete_category(&mut self) -> &mut Self[src]

Deletes the category of the custom emoji.

pub fn aliases(
    &mut self,
    aliases: impl IntoIterator<Item = impl Into<String>>
) -> &mut Self
[src]

Sets the aliases of the custom emoji.

pub fn add_aliases(
    &mut self,
    aliases: impl IntoIterator<Item = impl Into<String>>
) -> &mut Self
[src]

Adds the given aliases to the custom emoji.

pub fn add_alias(&mut self, alias: impl Into<String>) -> &mut Self[src]

Adds the given alias to the custom emoji.

impl<C: Client> EmojiUpdateBuilder<C>[src]

pub async fn update<'_>(&'_ self) -> Result<(), Error<C::Error>>[src]

Updates the custom emoji.

Auto Trait Implementations

impl<C> RefUnwindSafe for EmojiUpdateBuilder<C> where
    C: RefUnwindSafe
[src]

impl<C> Send for EmojiUpdateBuilder<C> where
    C: Send
[src]

impl<C> Sync for EmojiUpdateBuilder<C> where
    C: Sync
[src]

impl<C> Unpin for EmojiUpdateBuilder<C> where
    C: Unpin
[src]

impl<C> UnwindSafe for EmojiUpdateBuilder<C> where
    C: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.