pub struct SchemaJSON {
pub schema: SchemaLeaf,
}Fields§
§schema: SchemaLeafImplementations§
Source§impl SchemaJSON
impl SchemaJSON
pub fn new(schema: SchemaLeaf) -> SchemaJSON
pub fn type(&self) -> &'static str
pub fn serialize(&self) -> Value
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SchemaJSON
impl !UnwindSafe for SchemaJSON
impl Forget for SchemaJSON
impl Freeze for SchemaJSON
impl Move for SchemaJSON
impl Send for SchemaJSON
impl Sync for SchemaJSON
impl Unpin for SchemaJSON
impl UnsafeUnpin for SchemaJSON
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