pub struct SchemaBuilder(/* private fields */);Expand description
Builder for Schema.
Implementations§
Source§impl SchemaBuilder
impl SchemaBuilder
pub fn format(self, value: impl Into<String>) -> Self
pub fn title(self, value: impl Into<String>) -> Self
pub fn description(self, value: impl Into<String>) -> Self
pub fn nullable(self, value: impl Into<bool>) -> Self
pub fn enum(self, value: impl Into<Vec<String>>) -> Self
pub fn max_items(self, value: impl Into<String>) -> Self
pub fn min_items(self, value: impl Into<String>) -> Self
pub fn properties(self, value: impl Into<BTreeMap<String, Box<Schema>>>) -> Self
pub fn required(self, value: impl Into<Vec<String>>) -> Self
pub fn min_properties(self, value: impl Into<String>) -> Self
pub fn max_properties(self, value: impl Into<String>) -> Self
pub fn min_length(self, value: impl Into<String>) -> Self
pub fn max_length(self, value: impl Into<String>) -> Self
pub fn pattern(self, value: impl Into<String>) -> Self
pub fn example(self, value: impl Into<Value>) -> Self
pub fn any_of(self, value: impl Into<Vec<Box<Schema>>>) -> Self
pub fn property_ordering(self, value: impl Into<Vec<String>>) -> Self
pub fn default(self, value: impl Into<Value>) -> Self
pub fn items(self, value: impl Into<Box<Schema>>) -> Self
pub fn minimum(self, value: impl Into<f64>) -> Self
pub fn maximum(self, value: impl Into<f64>) -> Self
pub fn rest(self, value: Rest) -> Self
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