pub struct Onboarding {
pub default_channel_ids: Vec<Id<ChannelMarker>>,
pub enabled: bool,
pub guild_id: Id<GuildMarker>,
pub mode: OnboardingMode,
pub prompts: Vec<OnboardingPrompt>,
}
Expand description
The onboarding data for a guild.
Fields§
§default_channel_ids: Vec<Id<ChannelMarker>>
Channel IDs that new members get opted into automatically
enabled: bool
Whether the guild has enabled onboarding.
guild_id: Id<GuildMarker>
ID of the guild this onboarding is a part of.
mode: OnboardingMode
Current mode of onboarding.
prompts: Vec<OnboardingPrompt>
Array of OnboardingPrompt
s for the guild onboarding flow.
Trait Implementations§
Source§impl Clone for Onboarding
impl Clone for Onboarding
Source§fn clone(&self) -> Onboarding
fn clone(&self) -> Onboarding
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 Onboarding
impl Debug for Onboarding
Source§impl<'de> Deserialize<'de> for Onboarding
impl<'de> Deserialize<'de> for Onboarding
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 Onboarding
impl Hash for Onboarding
Source§impl PartialEq for Onboarding
impl PartialEq for Onboarding
Source§impl Serialize for Onboarding
impl Serialize for Onboarding
impl Eq for Onboarding
impl StructuralPartialEq for Onboarding
Auto Trait Implementations§
impl Freeze for Onboarding
impl RefUnwindSafe for Onboarding
impl Send for Onboarding
impl Sync for Onboarding
impl Unpin for Onboarding
impl UnwindSafe for Onboarding
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