pub struct StaticDomainValue {
pub id: String,
pub selected: bool,
pub text: HashMap<String, String>,
}Expand description
A domain value option from node config.
Represents a selectable option with id, selected state, and i18n labels.
Fields§
§id: StringUnique identifier for this value
selected: boolWhether this is the selected/default value
text: HashMap<String, String>Translatable text labels by language code
Implementations§
Trait Implementations§
Source§impl Clone for StaticDomainValue
impl Clone for StaticDomainValue
Source§fn clone(&self) -> StaticDomainValue
fn clone(&self) -> StaticDomainValue
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 StaticDomainValue
impl Debug for StaticDomainValue
Source§impl Default for StaticDomainValue
impl Default for StaticDomainValue
Source§fn default() -> StaticDomainValue
fn default() -> StaticDomainValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StaticDomainValue
impl<'de> Deserialize<'de> for StaticDomainValue
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
Auto Trait Implementations§
impl Freeze for StaticDomainValue
impl RefUnwindSafe for StaticDomainValue
impl Send for StaticDomainValue
impl Sync for StaticDomainValue
impl Unpin for StaticDomainValue
impl UnsafeUnpin for StaticDomainValue
impl UnwindSafe for StaticDomainValue
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