pub struct SchemaBuilder;Expand description
Helper to build JSON schema for common Rust types
Implementations§
Source§impl SchemaBuilder
impl SchemaBuilder
Sourcepub fn string_enum(values: &[&str]) -> Value
pub fn string_enum(values: &[&str]) -> Value
Create a string schema with enum values
Sourcepub fn with_description(schema: Value, description: &str) -> Value
pub fn with_description(schema: Value, description: &str) -> Value
Add description to a 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 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