pub struct ChoiceOption {
pub name: String,
pub rubric: Option<Entry>,
}Expand description
One choice option: a name (its identity and its label) plus an optional rubric.
None rubric = undescribed option (D3’s choice-side counterpart).
Fields§
§name: StringOption name. Sent to the model; also the emitted label string.
rubric: Option<Entry>Rubric text (any entry type; structured entries are serialized as canonical JSON).
Trait Implementations§
Source§impl Clone for ChoiceOption
impl Clone for ChoiceOption
Source§fn clone(&self) -> ChoiceOption
fn clone(&self) -> ChoiceOption
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 ChoiceOption
impl Debug for ChoiceOption
Source§impl PartialEq for ChoiceOption
impl PartialEq for ChoiceOption
Source§fn eq(&self, other: &ChoiceOption) -> bool
fn eq(&self, other: &ChoiceOption) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChoiceOption
Auto Trait Implementations§
impl Freeze for ChoiceOption
impl RefUnwindSafe for ChoiceOption
impl Send for ChoiceOption
impl Sync for ChoiceOption
impl Unpin for ChoiceOption
impl UnsafeUnpin for ChoiceOption
impl UnwindSafe for ChoiceOption
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