#[non_exhaustive]pub struct CustomEmojiCreateInput<'a> {
pub client_id: Option<&'a str>,
pub name: &'a str,
pub blob_id: &'a Id,
pub space_id: Option<&'a Id>,
}Expand description
Parameters for creating one CustomEmoji via CustomEmoji/set.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.client_id: Option<&'a str>Caller-supplied creation key. When None, a ULID is generated automatically.
name: &'a strShortcode name without colons (e.g., catjam).
blob_id: &'a IdblobId of the emoji image (already uploaded).
space_id: Option<&'a Id>If Some, limits the emoji to the given Space. None = server-global.
Implementations§
Source§impl<'a> CustomEmojiCreateInput<'a>
impl<'a> CustomEmojiCreateInput<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CustomEmojiCreateInput<'a>
impl<'a> RefUnwindSafe for CustomEmojiCreateInput<'a>
impl<'a> Send for CustomEmojiCreateInput<'a>
impl<'a> Sync for CustomEmojiCreateInput<'a>
impl<'a> Unpin for CustomEmojiCreateInput<'a>
impl<'a> UnsafeUnpin for CustomEmojiCreateInput<'a>
impl<'a> UnwindSafe for CustomEmojiCreateInput<'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