pub struct OnboardingPrompt {
pub id: Id<OnboardingPromptMarker>,
pub in_onboarding: bool,
pub kind: OnboardingPromptType,
pub options: Vec<OnboardingPromptOption>,
pub required: bool,
pub single_select: bool,
pub title: String,
}
Expand description
A prompt in the onboarding flow.
Fields§
§id: Id<OnboardingPromptMarker>
ID of the prompt.
in_onboarding: bool
Whether this prompt is in the onboarding flow.
kind: OnboardingPromptType
OnboardingPromptType
of the prompt.
options: Vec<OnboardingPromptOption>
Array of OnboardingPromptOption
s available to the prompt.
required: bool
Whether this prompt is required in the onboarding flow.
single_select: bool
Whether this prompt allows selecting only one option.
title: String
Title of the prompt.
Trait Implementations§
source§impl Clone for OnboardingPrompt
impl Clone for OnboardingPrompt
source§fn clone(&self) -> OnboardingPrompt
fn clone(&self) -> OnboardingPrompt
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 OnboardingPrompt
impl Debug for OnboardingPrompt
source§impl<'de> Deserialize<'de> for OnboardingPrompt
impl<'de> Deserialize<'de> for OnboardingPrompt
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 OnboardingPrompt
impl Hash for OnboardingPrompt
source§impl PartialEq for OnboardingPrompt
impl PartialEq for OnboardingPrompt
source§impl Serialize for OnboardingPrompt
impl Serialize for OnboardingPrompt
impl Eq for OnboardingPrompt
impl StructuralPartialEq for OnboardingPrompt
Auto Trait Implementations§
impl Freeze for OnboardingPrompt
impl RefUnwindSafe for OnboardingPrompt
impl Send for OnboardingPrompt
impl Sync for OnboardingPrompt
impl Unpin for OnboardingPrompt
impl UnwindSafe for OnboardingPrompt
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
)