Enum dalloriam_cloud_protocol::Variant
source · [−]pub enum Variant {
Str(String),
Int(i32),
Double(f64),
Bool(bool),
Seq(Vec<Variant>),
Map(HashMap<String, Variant>),
}
Variants
Str(String)
Int(i32)
Double(f64)
Bool(bool)
Seq(Vec<Variant>)
Map(HashMap<String, Variant>)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Variant
impl<'de> Deserialize<'de> for Variant
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more