pub struct DataSectionVariableMeta {
pub name: String,
pub ty: String,
pub value: Option<Value>,
pub description: Option<String>,
pub cmdarg: VariableCommandArgument,
pub others: Value,
}
Expand description
Describe a variable in a data section
Fields§
§name: String
Name of this variable
ty: String
Type of this variable
value: Option<Value>
Value of this variable. This will be filled into the initial value of the corresponding map
description: Option<String>
Description of this variable. Will be used to display in generated command arguments
cmdarg: VariableCommandArgument
The command line argument to produce this variable
others: Value
Other fields
Trait Implementations§
Source§impl Clone for DataSectionVariableMeta
impl Clone for DataSectionVariableMeta
Source§fn clone(&self) -> DataSectionVariableMeta
fn clone(&self) -> DataSectionVariableMeta
Returns a duplicate 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 DataSectionVariableMeta
impl Debug for DataSectionVariableMeta
Source§impl<'de> Deserialize<'de> for DataSectionVariableMeta
impl<'de> Deserialize<'de> for DataSectionVariableMeta
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 DataSectionVariableMeta
impl PartialEq for DataSectionVariableMeta
Source§impl Serialize for DataSectionVariableMeta
impl Serialize for DataSectionVariableMeta
impl Eq for DataSectionVariableMeta
impl StructuralPartialEq for DataSectionVariableMeta
Auto Trait Implementations§
impl Freeze for DataSectionVariableMeta
impl RefUnwindSafe for DataSectionVariableMeta
impl Send for DataSectionVariableMeta
impl Sync for DataSectionVariableMeta
impl Unpin for DataSectionVariableMeta
impl UnwindSafe for DataSectionVariableMeta
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.