pub struct OnboardingPromptOption {
pub channel_ids: Vec<Id<ChannelMarker>>,
pub description: Option<String>,
pub emoji: OnboardingPromptEmoji,
pub id: Id<OnboardingPromptOptionMarker>,
pub role_ids: Vec<Id<RoleMarker>>,
pub title: String,
}
Expand description
A prompt option for a guild onboarding screen.
Fields§
§channel_ids: Vec<Id<ChannelMarker>>
Channels opted into when this option is selected.
description: Option<String>
Description of the option.
emoji: OnboardingPromptEmoji
Emoji of the option.
id: Id<OnboardingPromptOptionMarker>
ID of the option.
role_ids: Vec<Id<RoleMarker>>
Roles assigned when this option is selected.
title: String
Title of the option.
Trait Implementations§
source§impl Clone for OnboardingPromptOption
impl Clone for OnboardingPromptOption
source§fn clone(&self) -> OnboardingPromptOption
fn clone(&self) -> OnboardingPromptOption
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 OnboardingPromptOption
impl Debug for OnboardingPromptOption
source§impl<'de> Deserialize<'de> for OnboardingPromptOption
impl<'de> Deserialize<'de> for OnboardingPromptOption
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 Hash for OnboardingPromptOption
impl Hash for OnboardingPromptOption
source§impl PartialEq for OnboardingPromptOption
impl PartialEq for OnboardingPromptOption
source§impl Serialize for OnboardingPromptOption
impl Serialize for OnboardingPromptOption
impl Eq for OnboardingPromptOption
impl StructuralPartialEq for OnboardingPromptOption
Auto Trait Implementations§
impl Freeze for OnboardingPromptOption
impl RefUnwindSafe for OnboardingPromptOption
impl Send for OnboardingPromptOption
impl Sync for OnboardingPromptOption
impl Unpin for OnboardingPromptOption
impl UnwindSafe for OnboardingPromptOption
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
)