Skip to main content

SchemaDocument

Struct SchemaDocument 

Source
pub struct SchemaDocument { /* private fields */ }

Implementations§

Source§

impl SchemaDocument

Source

pub fn with_external(register: impl Fn(&mut SchemaGenerator)) -> Self

Source

pub fn output<T: JsonSchema>(self) -> Self

Source

pub fn input<T: JsonSchema>(self) -> Self

Source

pub fn build(self) -> Value

Source

pub fn print(self)

Trait Implementations§

Source§

impl Default for SchemaDocument

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for SchemaDocument

§

impl !Sync for SchemaDocument

§

impl !UnwindSafe for SchemaDocument

§

impl Forget for SchemaDocument

§

impl Freeze for SchemaDocument
where &'static str: Freeze, String: Freeze, *const u8 is !null: Freeze, PhantomData<Box<dyn GenTransform>>: Freeze, *const LeafNode<String, Value> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, Value)>>: Freeze, *const LeafNode<SchemaUid, SetValZST> is !null: Freeze, PhantomData<Box<(SchemaUid, SetValZST)>>: Freeze, *const LeafNode<SchemaUid, Cow<'static, str>> is !null: Freeze, PhantomData<Box<(SchemaUid, Cow<'static, str>)>>: Freeze, *const LeafNode<Cow<'static, str>, SetValZST> is !null: Freeze, PhantomData<Box<(Cow<'static, str>, SetValZST)>>: Freeze, PhantomData<SchemaUid>: Freeze, *const LeafNode<String, SetValZST> is !null: Freeze, PhantomData<Box<(String, SetValZST)>>: Freeze, PhantomData<String>: Freeze,

§

impl Move for SchemaDocument

§

impl Send for SchemaDocument
where &'static str: Send, String: Send, RawVecInner: Send, BoxRaw<dyn GenTransform>: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send, NodeRef<Owned, SchemaUid, SetValZST, LeafOrInternal>: Send, BoxRaw<(SchemaUid, SetValZST)>: Send, NodeRef<Owned, SchemaUid, Cow<'static, str>, LeafOrInternal>: Send, BoxRaw<(SchemaUid, Cow<'static, str>)>: Send, NodeRef<Owned, Cow<'static, str>, SetValZST, LeafOrInternal>: Send, BoxRaw<(Cow<'static, str>, SetValZST)>: Send, NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send, BoxRaw<(String, SetValZST)>: Send,

§

impl Unpin for SchemaDocument
where &'static str: Unpin, String: Unpin, *const u8 is !null: Unpin, Box<dyn GenTransform>: Unpin, *const LeafNode<String, Value> is !null: Unpin, Box<(String, Value)>: Unpin, *const LeafNode<SchemaUid, SetValZST> is !null: Unpin, Box<(SchemaUid, SetValZST)>: Unpin, *const LeafNode<SchemaUid, Cow<'static, str>> is !null: Unpin, Box<(SchemaUid, Cow<'static, str>)>: Unpin, *const LeafNode<Cow<'static, str>, SetValZST> is !null: Unpin, Box<(Cow<'static, str>, SetValZST)>: Unpin, *const LeafNode<String, SetValZST> is !null: Unpin, Box<(String, SetValZST)>: Unpin,

§

impl UnsafeUnpin for SchemaDocument
where &'static str: UnsafeUnpin, String: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<Box<dyn GenTransform>>: UnsafeUnpin, *const LeafNode<String, Value> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(String, Value)>>: UnsafeUnpin, *const LeafNode<SchemaUid, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(SchemaUid, SetValZST)>>: UnsafeUnpin, *const LeafNode<SchemaUid, Cow<'static, str>> is !null: UnsafeUnpin, PhantomData<Box<(SchemaUid, Cow<'static, str>)>>: UnsafeUnpin, *const LeafNode<Cow<'static, str>, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(Cow<'static, str>, SetValZST)>>: UnsafeUnpin, PhantomData<SchemaUid>: UnsafeUnpin, *const LeafNode<String, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more