pub struct JsonContextVariable {
pub type: String,
pub value: Option<Value>,
}
Expand description
JsonContextVariable : A JSON object with custom content.
Fields§
§type: String
Type of custom context variable.
value: Option<Value>
A JSON object containing custom content.
Implementations§
Source§impl JsonContextVariable
impl JsonContextVariable
Sourcepub fn new(type: String) -> JsonContextVariable
pub fn new(type: String) -> JsonContextVariable
A JSON object with custom content.
Trait Implementations§
Source§impl Clone for JsonContextVariable
impl Clone for JsonContextVariable
Source§fn clone(&self) -> JsonContextVariable
fn clone(&self) -> JsonContextVariable
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 JsonContextVariable
impl Debug for JsonContextVariable
Source§impl Default for JsonContextVariable
impl Default for JsonContextVariable
Source§fn default() -> JsonContextVariable
fn default() -> JsonContextVariable
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JsonContextVariable
impl<'de> Deserialize<'de> for JsonContextVariable
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 JsonContextVariable
impl PartialEq for JsonContextVariable
Source§impl Serialize for JsonContextVariable
impl Serialize for JsonContextVariable
impl StructuralPartialEq for JsonContextVariable
Auto Trait Implementations§
impl Freeze for JsonContextVariable
impl RefUnwindSafe for JsonContextVariable
impl Send for JsonContextVariable
impl Sync for JsonContextVariable
impl Unpin for JsonContextVariable
impl UnwindSafe for JsonContextVariable
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