pub struct HttpSchema {
pub version: String,
pub schema_version: String,
pub schema_source: String,
pub schema_source_version: String,
pub info: Option<Info>,
pub servers: Option<Vec<Server>>,
pub paths: Option<IndexMap<String, MayBeRef<Path>>>,
pub components: Option<Components>,
pub tags: Option<Vec<Tag>>,
pub external_docs: Option<ExternalDoc>,
}
Fields§
§version: String
§schema_version: String
§schema_source: String
§schema_source_version: String
§info: Option<Info>
§servers: Option<Vec<Server>>
§paths: Option<IndexMap<String, MayBeRef<Path>>>
§components: Option<Components>
§external_docs: Option<ExternalDoc>
Implementations§
Source§impl HttpSchema
impl HttpSchema
pub fn schema_version() -> &'static str
Trait Implementations§
Source§impl Clone for HttpSchema
impl Clone for HttpSchema
Source§fn clone(&self) -> HttpSchema
fn clone(&self) -> HttpSchema
Returns a copy of the value. Read more
1.0.0 · 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 HttpSchema
impl Debug for HttpSchema
Source§impl<'de> Deserialize<'de> for HttpSchema
impl<'de> Deserialize<'de> for HttpSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Diff<HttpSchema, HttpSchemaDiff, HttpSchemaDiffContext> for HttpSchema
impl Diff<HttpSchema, HttpSchemaDiff, HttpSchemaDiffContext> for HttpSchema
fn diff( &self, new: Option<&HttpSchema>, context: &HttpSchemaDiffContext, ) -> DiffResult<HttpSchemaDiff>
Source§impl From<OpenApi303> for HttpSchema
impl From<OpenApi303> for HttpSchema
Source§fn from(spec: OpenApi303) -> Self
fn from(spec: OpenApi303) -> Self
Converts to this type from the input type.
Source§impl From<OpenApi310> for HttpSchema
impl From<OpenApi310> for HttpSchema
Source§fn from(spec: OpenApi310) -> Self
fn from(spec: OpenApi310) -> Self
Converts to this type from the input type.
Source§impl From<SwaggerV2> for HttpSchema
impl From<SwaggerV2> for HttpSchema
Auto Trait Implementations§
impl Freeze for HttpSchema
impl RefUnwindSafe for HttpSchema
impl Send for HttpSchema
impl Sync for HttpSchema
impl Unpin for HttpSchema
impl UnwindSafe for HttpSchema
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