pub struct OpenApiSchema(/* private fields */);Expand description
OpenAPI schema value. This intentionally stays schema-crate neutral.
Implementations§
Source§impl OpenApiSchema
impl OpenApiSchema
pub fn from_value(value: Value) -> Self
pub fn string() -> Self
pub fn integer() -> Self
pub fn number() -> Self
pub fn boolean() -> Self
pub fn object() -> Self
pub fn array(items: OpenApiSchema) -> Self
pub fn reference(name: impl AsRef<str>) -> Self
pub fn into_value(self) -> Value
Trait Implementations§
Source§impl Clone for OpenApiSchema
impl Clone for OpenApiSchema
Source§fn clone(&self) -> OpenApiSchema
fn clone(&self) -> OpenApiSchema
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 moreSource§impl Debug for OpenApiSchema
impl Debug for OpenApiSchema
Source§impl PartialEq for OpenApiSchema
impl PartialEq for OpenApiSchema
Source§fn eq(&self, other: &OpenApiSchema) -> bool
fn eq(&self, other: &OpenApiSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OpenApiSchema
impl Serialize for OpenApiSchema
impl StructuralPartialEq for OpenApiSchema
Auto Trait Implementations§
impl Freeze for OpenApiSchema
impl RefUnwindSafe for OpenApiSchema
impl Send for OpenApiSchema
impl Sync for OpenApiSchema
impl Unpin for OpenApiSchema
impl UnsafeUnpin for OpenApiSchema
impl UnwindSafe for OpenApiSchema
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