#[non_exhaustive]
pub enum Pmt {
Show 17 variants
Ok,
InvalidValue,
Null,
String(String),
Bool(bool),
Usize(usize),
U32(u32),
U64(u64),
F32(f32),
F64(f64),
VecF32(Vec<f32, Global>),
VecU64(Vec<u64, Global>),
Blob(Vec<u8, Global>),
VecPmt(Vec<Pmt, Global>),
Finished,
MapStrPmt(HashMap<String, Pmt, RandomState>),
Any(Box<dyn PmtAny + 'static, Global>),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ok
InvalidValue
Null
String(String)
Bool(bool)
Usize(usize)
U32(u32)
U64(u64)
F32(f32)
F64(f64)
VecF32(Vec<f32, Global>)
VecU64(Vec<u64, Global>)
Blob(Vec<u8, Global>)
VecPmt(Vec<Pmt, Global>)
Finished
MapStrPmt(HashMap<String, Pmt, RandomState>)
Any(Box<dyn PmtAny + 'static, Global>)
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Pmt
impl<'de> Deserialize<'de> for Pmt
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Pmt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Pmt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Pmt
impl Serialize for Pmt
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