#[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 — or Some("") — a ULID
is generated automatically. An empty Some("") is treated the same
as None, not as a rejection; callers must not assume the wire
echoes a caller-supplied empty string.
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§
Source§impl<'a> Clone for CustomEmojiCreateInput<'a>
impl<'a> Clone for CustomEmojiCreateInput<'a>
Source§fn clone(&self) -> CustomEmojiCreateInput<'a>
fn clone(&self) -> CustomEmojiCreateInput<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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