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: JsonSchemaConfig
pub const CANONICAL: JsonSchemaConfig
Canonical standalone JSON Schema document (includes the $schema
draft marker).
Sourcepub const WITHOUT_DRAFT_MARKER: JsonSchemaConfig
pub const WITHOUT_DRAFT_MARKER: JsonSchemaConfig
Canonical JSON Schema document without the $schema draft marker, for
consumers that embed the schema elsewhere (e.g. tool/resource schemas).
Sourcepub const REFLECTION: JsonSchemaConfig
pub const REFLECTION: JsonSchemaConfig
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
Source§fn clone(&self) -> JsonSchemaConfig
fn clone(&self) -> JsonSchemaConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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