pub struct Schema {
pub name: String,
pub root_type: SchemaType,
pub nested_types: Vec<NestedType>,
}Fields§
§name: String§root_type: SchemaType§nested_types: Vec<NestedType>Implementations§
Source§impl Schema
impl Schema
pub fn new(name: impl Into<String>, root_type: SchemaType) -> Self
pub fn with_nested_types(self, nested_types: Vec<NestedType>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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