pub enum JsonValue<'a> {
Array(&'a Vec<ValueType>),
Object(&'a Vec<(&'a str, &'a ValueType)>),
ObjectArray(&'a Vec<Vec<(&'a str, &'a ValueType)>>),
Initial(&'a ValueType),
MysqlJsonObject(&'a Vec<(&'a str, &'a ValueType)>),
}Expand description
Enum that benefits you to add json values to structs. They can be used with json functions.
Variants§
Array(&'a Vec<ValueType>)
Object(&'a Vec<(&'a str, &'a ValueType)>)
ObjectArray(&'a Vec<Vec<(&'a str, &'a ValueType)>>)
Initial(&'a ValueType)
MysqlJsonObject(&'a Vec<(&'a str, &'a ValueType)>)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for JsonValue<'a>
impl<'a> RefUnwindSafe for JsonValue<'a>
impl<'a> Send for JsonValue<'a>
impl<'a> Sync for JsonValue<'a>
impl<'a> Unpin for JsonValue<'a>
impl<'a> UnwindSafe for JsonValue<'a>
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