#[non_exhaustive]pub struct PromptOptionData {
pub id: Option<GenericId>,
pub channel_ids: Vec<ChannelId>,
pub role_ids: Vec<RoleId>,
pub emoji_id: Option<EmojiId>,
pub emoji_name: Option<CompactString>,
pub emoji_animated: Option<bool>,
pub title: CompactString,
pub description: Option<CompactString>,
}Expand description
A prompt option in a request (D-118): the emoji is given by its parts, as Discord requires here.
discord.js counterpart: GuildOnboardingPromptOptionData.
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.id: Option<GenericId>The ID of an existing option; None for a new one.
channel_ids: Vec<ChannelId>The channels a member is added to when they pick the option.
role_ids: Vec<RoleId>The roles a member gets when they pick the option.
emoji_id: Option<EmojiId>The custom emoji’s ID.
emoji_name: Option<CompactString>The custom emoji’s name, or the Unicode emoji.
emoji_animated: Option<bool>Whether the custom emoji is animated.
title: CompactStringThe title.
description: Option<CompactString>The description.
Implementations§
Trait Implementations§
Source§impl Clone for PromptOptionData
impl Clone for PromptOptionData
Source§impl Debug for PromptOptionData
impl Debug for PromptOptionData
impl Eq for PromptOptionData
Source§impl From<PromptOption> for PromptOptionData
impl From<PromptOption> for PromptOptionData
Source§fn from(option: PromptOption) -> Self
fn from(option: PromptOption) -> Self
Converts to this type from the input type.
Source§impl Hash for PromptOptionData
impl Hash for PromptOptionData
Source§impl PartialEq for PromptOptionData
impl PartialEq for PromptOptionData
Source§impl Serialize for PromptOptionData
impl Serialize for PromptOptionData
impl StructuralPartialEq for PromptOptionData
Auto Trait Implementations§
impl Freeze for PromptOptionData
impl RefUnwindSafe for PromptOptionData
impl Send for PromptOptionData
impl Sync for PromptOptionData
impl Unpin for PromptOptionData
impl UnsafeUnpin for PromptOptionData
impl UnwindSafe for PromptOptionData
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