pub struct Variable<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub instance: Option<String<50usize>>,
pub name: String<50usize>,
}Expand description
Reference key to a component-variable.
Fields§
§custom_data: Option<CustomDataType>§instance: Option<String<50usize>>Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.
name: String<50usize>Name of the variable. Name should be taken from the list of standardized variable names whenever possible. Case Insensitive. strongly advised to use Camel Case.
Trait Implementations§
Source§impl<'de, CustomDataType> Deserialize<'de> for Variable<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for Variable<CustomDataType>where
CustomDataType: Deserialize<'de>,
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
impl<CustomDataType: Eq> Eq for Variable<CustomDataType>
impl<CustomDataType: PartialEq> StructuralPartialEq for Variable<CustomDataType>
Auto Trait Implementations§
impl<CustomDataType> Freeze for Variable<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for Variable<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for Variable<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for Variable<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for Variable<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for Variable<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for Variable<CustomDataType>where
CustomDataType: UnwindSafe,
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