pub struct ChoicesDecl {
pub id: String,
pub name: String,
pub live: bool,
pub values: Vec<ChoiceDecl>,
}Expand description
One named list of options, owned. Mirrors AddonChoices.
Fields§
§id: StringStable id within the addon.
name: StringWhat the list is.
live: boolWhether the values must be asked for rather than read from below.
values: Vec<ChoiceDecl>Every value, for a declared source. Empty when live.
Trait Implementations§
Source§impl Clone for ChoicesDecl
impl Clone for ChoicesDecl
Source§fn clone(&self) -> ChoicesDecl
fn clone(&self) -> ChoicesDecl
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 ChoicesDecl
impl Debug for ChoicesDecl
Source§impl<'de> Deserialize<'de> for ChoicesDecl
impl<'de> Deserialize<'de> for ChoicesDecl
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 PartialEq for ChoicesDecl
impl PartialEq for ChoicesDecl
Source§fn eq(&self, other: &ChoicesDecl) -> bool
fn eq(&self, other: &ChoicesDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChoicesDecl
impl Serialize for ChoicesDecl
impl Eq for ChoicesDecl
impl StructuralPartialEq for ChoicesDecl
Auto Trait Implementations§
impl Freeze for ChoicesDecl
impl RefUnwindSafe for ChoicesDecl
impl Send for ChoicesDecl
impl Sync for ChoicesDecl
impl Unpin for ChoicesDecl
impl UnsafeUnpin for ChoicesDecl
impl UnwindSafe for ChoicesDecl
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