pub enum Cell {
Absent,
Truncated,
Scalar(String),
Sequence(Vec<Self>),
Map(Vec<(Self, Self)>),
Record(Vec<(String, Self)>),
Variant(String, Option<Box<Self>>),
}Expand description
Schema supplies scalar types. Separate tags preserve absent, truncated and literal text.
Variants§
Absent
Missing optional value.
Truncated
Value omitted to fit the budget.
Scalar(String)
Lossless text for the declared scalar.
Sequence(Vec<Self>)
List or ordered set elements.
Map(Vec<(Self, Self)>)
Ordered key/value pairs.
Record(Vec<(String, Self)>)
Named record fields.
Variant(String, Option<Box<Self>>)
Selected enum case and optional payload.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cell
impl<'de> Deserialize<'de> for Cell
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
Auto Trait Implementations§
impl Forget for Cell
impl Freeze for Cellwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Cell>: Freeze,
PhantomData<(Cell, Cell)>: Freeze,
PhantomData<(String, Cell)>: Freeze,
*const Cell is !null: Freeze,
impl Move for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnsafeUnpin for Cellwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Cell>: UnsafeUnpin,
PhantomData<(Cell, Cell)>: UnsafeUnpin,
PhantomData<(String, Cell)>: UnsafeUnpin,
*const Cell is !null: UnsafeUnpin,
impl UnwindSafe for Cell
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