pub struct Object;Expand description
#[schema(value_type = Object)]: {"type": "object"}, whatever the field’s
Rust type is.
Trait Implementations§
impl Copy for Object
Source§impl ToSchema for Object
impl ToSchema for Object
Source§fn reference() -> Schema
fn reference() -> Schema
What a field or an element of this type says: a
$ref to the component,
or for a type with no component of its own (String, Vec<T>) its
schema.Source§fn components(_out: &mut Vec<(String, Schema)>)
fn components(_out: &mut Vec<(String, Schema)>)
Adds the component schemas
reference refers to:
this type’s and what it refers to. A type already in out isn’t walked
again, so a type that contains itself ends. Another type of the same name
is walked as well, even with the same schema, since what its $refs mean
may differ: a different schema of one name goes in beside the first, for
the document to refuse.Auto Trait Implementations§
impl Forget for Object
impl Freeze for Object
impl Move for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnsafeUnpin for Object
impl UnwindSafe for Object
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