pub enum JsonShape {
Null,
Bool,
Number,
String,
Array(Box<Self>),
Object(HashMap<String, Self>),
}Expand description
Describes the shape of a JSON value for contract comparison.
Variants§
Null
null
Bool
boolean
Number
number (integer or float)
String
string
Array(Box<Self>)
array with element shape (from first element, or Null if empty)
Object(HashMap<String, Self>)
object with field names and their shapes
Implementations§
Trait Implementations§
impl StructuralPartialEq for JsonShape
Auto Trait Implementations§
impl Freeze for JsonShape
impl RefUnwindSafe for JsonShape
impl Send for JsonShape
impl Sync for JsonShape
impl Unpin for JsonShape
impl UnsafeUnpin for JsonShape
impl UnwindSafe for JsonShape
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