pub struct DataEntry {
pub key: String,
pub value_string: Option<String>,
pub value_number: Option<f64>,
pub value_boolean: Option<bool>,
pub value_map: Option<Vec<DataEntry>>,
}Expand description
A single data entry in a dataModelUpdate message.
Each entry has a key and exactly one typed value.
Fields§
§key: StringThe key for this data entry.
value_string: Option<String>A string value.
value_number: Option<f64>A number value.
value_boolean: Option<bool>A boolean value.
value_map: Option<Vec<DataEntry>>A map value, represented as a nested adjacency list.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataEntry
impl<'de> Deserialize<'de> for DataEntry
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 StructuralPartialEq for DataEntry
Auto Trait Implementations§
impl Freeze for DataEntry
impl RefUnwindSafe for DataEntry
impl Send for DataEntry
impl Sync for DataEntry
impl Unpin for DataEntry
impl UnsafeUnpin for DataEntry
impl UnwindSafe for DataEntry
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