pub struct SchemaDocument { /* private fields */ }Implementations§
Source§impl SchemaDocument
impl SchemaDocument
pub fn with_external(register: impl Fn(&mut SchemaGenerator)) -> Self
pub fn output<T: JsonSchema>(self) -> Self
pub fn input<T: JsonSchema>(self) -> Self
pub fn build(self) -> Value
pub fn print(self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SchemaDocument
impl !Sync for SchemaDocument
impl !UnwindSafe for SchemaDocument
impl Forget for SchemaDocument
impl Freeze for SchemaDocumentwhere
&'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 SchemaDocumentwhere
&'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 SchemaDocumentwhere
&'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 SchemaDocumentwhere
&'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> 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