Enum serde_lite::Intermediate
source · pub enum Intermediate {
None,
Bool(bool),
Number(Number),
String(Cow<'static, str>),
Array(Vec<Intermediate>),
Map(Map),
}Expand description
Intermediate data representation.
The format is similar to JSON. It can be serialized/deserialized using serde.
Variants§
Implementations§
source§impl Intermediate
impl Intermediate
sourcepub fn as_array(&self) -> Option<&[Intermediate]>
pub fn as_array(&self) -> Option<&[Intermediate]>
Get the value as an array (if possible).
Trait Implementations§
source§impl Clone for Intermediate
impl Clone for Intermediate
source§fn clone(&self) -> Intermediate
fn clone(&self) -> Intermediate
Returns a copy of the value. Read more
1.0.0 · 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 Intermediate
impl Debug for Intermediate
source§impl<'de> Deserialize<'de> for Intermediate
impl<'de> Deserialize<'de> for Intermediate
source§fn deserialize<D>(deserializer: D) -> Result<Intermediate, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Intermediate, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Deserialize for Intermediate
impl Deserialize for Intermediate
source§fn deserialize(input: &Intermediate) -> Result<Self, Error>
fn deserialize(input: &Intermediate) -> Result<Self, Error>
Deserialize an object instance.