Enum serde_content::Found
source · pub enum Found {
Show 13 variants
Unit,
Bool(bool),
Number(Number),
Char(char),
String(String),
Bytes(Vec<u8>),
Seq(Vec<Found>),
Map(Vec<(Found, Found)>),
Option(Option<Box<Found>>),
Struct {
name: String,
data: Box<Data>,
},
Enum {
name: String,
variant: String,
data: Box<Data>,
},
Tuple(Vec<Found>),
Identifier(String),
}
Expand description
The type that was found.
Variants§
Unit
Found the Rust unit type, ()
.
Bool(bool)
Found a Rust boolean.
Number(Number)
Found any Rust number.
Char(char)
Found a Rust character.
String(String)
Found a Rust string.
Bytes(Vec<u8>)
Found a Rust byte array.
Seq(Vec<Found>)
Found an array of Rust values.
Map(Vec<(Found, Found)>)
Found a map of Rust values.
Option(Option<Box<Found>>)
Found optional Rust values.
Struct
Found a Rust struct.
Enum
Found a Rust enum.
Fields
Tuple(Vec<Found>)
Found a Rust tuple.
Identifier(String)
Found a struct field or an enum variant.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Found
impl<'de> Deserialize<'de> for Found
source§fn 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
source§impl PartialOrd for Found
impl PartialOrd for Found
impl StructuralPartialEq for Found
Auto Trait Implementations§
impl Freeze for Found
impl RefUnwindSafe for Found
impl Send for Found
impl Sync for Found
impl Unpin for Found
impl UnwindSafe for Found
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)