pub struct KeyValueField {
pub id: Uuid,
pub name: String,
pub value: Option<Box<Value>>,
}Fields§
§id: Uuid§name: String§value: Option<Box<Value>>Implementations§
Source§impl KeyValueField
impl KeyValueField
pub fn new<S>(name: S, value: Value) -> KeyValueField
pub fn new_with_option<S>(name: S, value: Option<Value>) -> KeyValueField
pub fn new_with_id<S>(name: S, id: Uuid, value: Value) -> KeyValueField
pub fn new_with_id_and_option<S>( name: S, id: Uuid, value: Option<Value>, ) -> KeyValueField
pub fn new_nested_kv<S, F>(kv_name: S, fields: &F) -> KeyValueField
pub fn new_nested_kv_with_kv_id<S, F>( kv_name: S, kv_id: Uuid, fields: &F, ) -> KeyValueField
pub fn new_nested_kv_with_both_ids<S, F>( kv_name: S, field_id: Uuid, kv_id: Uuid, fields: &F, ) -> KeyValueField
Trait Implementations§
Source§impl Clone for KeyValueField
impl Clone for KeyValueField
Source§fn clone(&self) -> KeyValueField
fn clone(&self) -> KeyValueField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KeyValueField
impl Debug for KeyValueField
Source§impl<'de> Deserialize<'de> for KeyValueField
impl<'de> Deserialize<'de> for KeyValueField
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeyValueField, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeyValueField, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for KeyValueField
impl Display for KeyValueField
Source§impl PartialEq for KeyValueField
impl PartialEq for KeyValueField
Source§fn eq(&self, other: &KeyValueField) -> bool
fn eq(&self, other: &KeyValueField) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KeyValueField
impl Serialize for KeyValueField
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for KeyValueField
Auto Trait Implementations§
impl Freeze for KeyValueField
impl RefUnwindSafe for KeyValueField
impl Send for KeyValueField
impl Sync for KeyValueField
impl Unpin for KeyValueField
impl UnsafeUnpin for KeyValueField
impl UnwindSafe for KeyValueField
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