#[non_exhaustive]pub struct Onboarding {
pub guild_id: GuildId,
pub prompts: Vec<OnboardingPrompt>,
pub default_channel_ids: Vec<ChannelId>,
pub enabled: bool,
pub mode: OnboardingMode,
}Expand description
The onboarding flow of a guild: questions that give new members channels and roles.
discord.js counterpart: GuildOnboarding.
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.guild_id: GuildIdThe guild’s ID.
prompts: Vec<OnboardingPrompt>The questions shown in onboarding and in “Channels & Roles”.
default_channel_ids: Vec<ChannelId>Channels members are opted into automatically.
enabled: boolWhether onboarding is enabled.
mode: OnboardingModeWhich channels count towards onboarding constraints. Defaults to
Default when absent (older payloads).
Trait Implementations§
Source§impl Clone for Onboarding
impl Clone for Onboarding
Source§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
impl Eq for Onboarding
Source§impl PartialEq for Onboarding
impl PartialEq for Onboarding
Source§impl Serialize for Onboarding
impl Serialize for Onboarding
impl StructuralPartialEq for Onboarding
Auto Trait Implementations§
impl Forget for Onboarding
impl Freeze for Onboarding
impl Move for Onboarding
impl RefUnwindSafe for Onboarding
impl Send for Onboarding
impl Sync for Onboarding
impl Unpin for Onboarding
impl UnsafeUnpin 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