pub struct JsonSchemaConfig {
pub include_draft_marker: bool,
/* private fields */
}Expand description
Configuration for the JSON Schema renderer.
The public constants select the trusted canonical representation; boundary renderers additionally select their host-managed capability policy.
Fields§
§include_draft_marker: boolEmit the $schema JSON Schema draft marker at the document root.
Implementations§
Source§impl JsonSchemaConfig
impl JsonSchemaConfig
Sourcepub const CANONICAL: Self
pub const CANONICAL: Self
Canonical standalone JSON Schema document (includes the $schema
draft marker).
Sourcepub const WITHOUT_DRAFT_MARKER: Self
pub const WITHOUT_DRAFT_MARKER: Self
Canonical JSON Schema document without the $schema draft marker, for
consumers that embed the schema elsewhere (e.g. tool/resource schemas).
Sourcepub const REFLECTION: Self
pub const REFLECTION: Self
Reflection JSON adapters cannot pack or unpack capabilities, futures, or streams, so their projected schemas must reject every JSON value.
Trait Implementations§
Source§impl Clone for JsonSchemaConfig
impl Clone for JsonSchemaConfig
impl Copy for JsonSchemaConfig
Auto Trait Implementations§
impl Freeze for JsonSchemaConfig
impl RefUnwindSafe for JsonSchemaConfig
impl Send for JsonSchemaConfig
impl Sync for JsonSchemaConfig
impl Unpin for JsonSchemaConfig
impl UnsafeUnpin for JsonSchemaConfig
impl UnwindSafe for JsonSchemaConfig
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