pub struct JsonSchemaFormatBuilder(/* private fields */);Expand description
Builder for JsonSchemaFormat.
Implementations§
Source§impl JsonSchemaFormatBuilder
impl JsonSchemaFormatBuilder
pub fn description(self, value: impl Into<String>) -> Self
pub fn schema(self, value: impl Into<Rest>) -> Self
pub fn strict(self, value: impl Into<Option<bool>>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> JsonSchemaFormat
pub fn build(self) -> JsonSchemaFormat
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for JsonSchemaFormatBuilder
impl RefUnwindSafe for JsonSchemaFormatBuilder
impl Send for JsonSchemaFormatBuilder
impl Sync for JsonSchemaFormatBuilder
impl Unpin for JsonSchemaFormatBuilder
impl UnsafeUnpin for JsonSchemaFormatBuilder
impl UnwindSafe for JsonSchemaFormatBuilder
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