pub enum Ast {
Show 28 variants
Bool(bool),
I8(i8),
I16(i16),
I32(i32),
I64(i64),
U8(u8),
U16(u16),
U32(u32),
U64(u64),
F32(f32),
F64(f64),
Char(char),
Str(String),
Bytes(Vec<u8>),
None,
Some(Box<Ast>),
Unit,
UnitStruct(&'static str),
UnitVariant {
name: &'static str,
variant_index: u32,
variant: &'static str,
},
NewtypeStruct {
name: &'static str,
value: Box<Ast>,
},
NewtypeVariant {
name: &'static str,
variant_index: u32,
variant: &'static str,
value: Box<Ast>,
},
Seq {
len: Option<usize>,
ops: Vec<Seq>,
},
Tuple {
len: usize,
ops: Vec<Tuple>,
},
TupleStruct {
name: &'static str,
len: usize,
ops: Vec<TupleStruct>,
},
TupleVariant {
name: &'static str,
variant_index: u32,
variant: &'static str,
len: usize,
ops: Vec<TupleVariant>,
},
Map {
len: Option<usize>,
ops: Vec<Map>,
},
Struct {
name: &'static str,
len: usize,
ops: Vec<Struct>,
},
StructVariant {
name: &'static str,
variant_index: u32,
variant: &'static str,
len: usize,
ops: Vec<StructVariant>,
},
}Expand description
Represent calls made to serde::Serializer during serialization.
Variants§
Bool(bool)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
F32(f32)
F64(f64)
Char(char)
Str(String)
Bytes(Vec<u8>)
None
Some(Box<Ast>)
Unit
UnitStruct(&'static str)
UnitVariant
NewtypeStruct
NewtypeVariant
Fields
Seq
Tuple
TupleStruct
Fields
§
ops: Vec<TupleStruct>serde::ser::SerializeTupleStruct operations
TupleVariant
Fields
§
ops: Vec<TupleVariant>serde::ser::SerializeTupleVariant operations
Map
Struct
Fields
§
ops: Vec<Struct>serde::ser::SerializeStruct operations
StructVariant
Trait Implementations§
impl StructuralPartialEq for Ast
Auto Trait Implementations§
impl Freeze for Ast
impl RefUnwindSafe for Ast
impl Send for Ast
impl Sync for Ast
impl Unpin for Ast
impl UnwindSafe for Ast
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)