pub struct VariableSet {
pub placeholder: Option<String>,
pub user_value: Option<String>,
}Expand description
A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a ‘$’ sign and should be alphanumeric only.
This type is not used in any activity, and only used as part of another schema.
Fields§
§placeholder: Option<String>The placeholder string; defined by EMM.
user_value: Option<String>The value of the placeholder, specific to the user.
Trait Implementations§
Source§impl Clone for VariableSet
impl Clone for VariableSet
Source§fn clone(&self) -> VariableSet
fn clone(&self) -> VariableSet
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 VariableSet
impl Debug for VariableSet
Source§impl Default for VariableSet
impl Default for VariableSet
Source§fn default() -> VariableSet
fn default() -> VariableSet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VariableSet
impl<'de> Deserialize<'de> for VariableSet
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 Serialize for VariableSet
impl Serialize for VariableSet
impl Part for VariableSet
Auto Trait Implementations§
impl Freeze for VariableSet
impl RefUnwindSafe for VariableSet
impl Send for VariableSet
impl Sync for VariableSet
impl Unpin for VariableSet
impl UnwindSafe for VariableSet
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