pub struct SchemaBuilder { /* private fields */ }Expand description
Builder for creating schemas.
Implementations§
Source§impl SchemaBuilder
impl SchemaBuilder
pub fn new(name: impl Into<String>) -> Self
pub fn field(self, name: impl Into<String>, schema: FieldSchema) -> Self
pub fn required_field( self, name: impl Into<String>, schema: FieldSchema, ) -> Self
pub fn additional_properties(self, allow: bool) -> Self
pub fn build(self) -> Schema
Auto Trait Implementations§
impl Freeze for SchemaBuilder
impl RefUnwindSafe for SchemaBuilder
impl Send for SchemaBuilder
impl Sync for SchemaBuilder
impl Unpin for SchemaBuilder
impl UnsafeUnpin for SchemaBuilder
impl UnwindSafe for SchemaBuilder
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