pub struct WizardQuestion {
pub id: &'static str,
pub label_key: &'static str,
pub help_key: Option<&'static str>,
pub kind: WizardQuestionKind,
pub required: bool,
pub default_value: Option<&'static str>,
pub choices: Vec<WizardChoice>,
pub visibility: Option<SchemaVisibility>,
}Fields§
§id: &'static str§label_key: &'static str§help_key: Option<&'static str>§kind: WizardQuestionKind§required: bool§default_value: Option<&'static str>§choices: Vec<WizardChoice>§visibility: Option<SchemaVisibility>Trait Implementations§
Source§impl Clone for WizardQuestion
impl Clone for WizardQuestion
Source§fn clone(&self) -> WizardQuestion
fn clone(&self) -> WizardQuestion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WizardQuestion
impl Debug for WizardQuestion
Source§impl PartialEq for WizardQuestion
impl PartialEq for WizardQuestion
Source§fn eq(&self, other: &WizardQuestion) -> bool
fn eq(&self, other: &WizardQuestion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WizardQuestion
impl Serialize for WizardQuestion
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for WizardQuestion
impl StructuralPartialEq for WizardQuestion
Auto Trait Implementations§
impl Freeze for WizardQuestion
impl RefUnwindSafe for WizardQuestion
impl Send for WizardQuestion
impl Sync for WizardQuestion
impl Unpin for WizardQuestion
impl UnsafeUnpin for WizardQuestion
impl UnwindSafe for WizardQuestion
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.