pub struct OnboardingPromptEmoji {
pub name: Option<String>,
pub id: Option<Id<EmojiMarker>>,
pub animated: bool,
}
Expand description
An emoji for a guild onboarding prompt.
This is used instead of Emoji
as both it’s id and name can be null
in
prompt options.
Fields§
§name: Option<String>
§id: Option<Id<EmojiMarker>>
§animated: bool
Trait Implementations§
source§impl Clone for OnboardingPromptEmoji
impl Clone for OnboardingPromptEmoji
source§fn clone(&self) -> OnboardingPromptEmoji
fn clone(&self) -> OnboardingPromptEmoji
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OnboardingPromptEmoji
impl Debug for OnboardingPromptEmoji
source§impl<'de> Deserialize<'de> for OnboardingPromptEmoji
impl<'de> Deserialize<'de> for OnboardingPromptEmoji
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Emoji> for OnboardingPromptEmoji
impl From<Emoji> for OnboardingPromptEmoji
source§impl Hash for OnboardingPromptEmoji
impl Hash for OnboardingPromptEmoji
source§impl PartialEq for OnboardingPromptEmoji
impl PartialEq for OnboardingPromptEmoji
source§impl Serialize for OnboardingPromptEmoji
impl Serialize for OnboardingPromptEmoji
impl Eq for OnboardingPromptEmoji
impl StructuralPartialEq for OnboardingPromptEmoji
Auto Trait Implementations§
impl Freeze for OnboardingPromptEmoji
impl RefUnwindSafe for OnboardingPromptEmoji
impl Send for OnboardingPromptEmoji
impl Sync for OnboardingPromptEmoji
impl Unpin for OnboardingPromptEmoji
impl UnwindSafe for OnboardingPromptEmoji
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)