pub struct OpenApiField {
pub name: String,
pub schema: Value,
pub required: bool,
pub input: bool,
pub returned: bool,
pub has_default: bool,
}Expand description
A model field’s wire schema and input/output policy.
Fields§
§name: String§schema: Value§required: bool§input: bool§returned: bool§has_default: boolIncludes callable defaults without evaluating them for documentation.
Implementations§
Trait Implementations§
Source§impl Clone for OpenApiField
impl Clone for OpenApiField
Source§impl Debug for OpenApiField
impl Debug for OpenApiField
impl Eq for OpenApiField
Source§impl PartialEq for OpenApiField
impl PartialEq for OpenApiField
impl StructuralPartialEq for OpenApiField
Auto Trait Implementations§
impl Freeze for OpenApiField
impl RefUnwindSafe for OpenApiField
impl Send for OpenApiField
impl Sync for OpenApiField
impl Unpin for OpenApiField
impl UnsafeUnpin for OpenApiField
impl UnwindSafe for OpenApiField
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.