pub struct SwaggerV2 {
pub swagger: String,
pub info: Option<Info>,
pub consumes: Option<Vec<String>>,
pub produces: Option<Vec<String>>,
pub paths: Option<IndexMap<String, Path>>,
pub definitions: Option<IndexMap<String, Schema>>,
pub parameters: Option<IndexMap<String, Parameter>>,
pub responses: Option<IndexMap<String, Response>>,
}
Fields§
§swagger: String
§info: Option<Info>
§consumes: Option<Vec<String>>
§produces: Option<Vec<String>>
§paths: Option<IndexMap<String, Path>>
§definitions: Option<IndexMap<String, Schema>>
§parameters: Option<IndexMap<String, Parameter>>
§responses: Option<IndexMap<String, Response>>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SwaggerV2
impl<'de> Deserialize<'de> for SwaggerV2
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 From<SwaggerV2> for HttpSchema
impl From<SwaggerV2> for HttpSchema
Auto Trait Implementations§
impl Freeze for SwaggerV2
impl RefUnwindSafe for SwaggerV2
impl Send for SwaggerV2
impl Sync for SwaggerV2
impl Unpin for SwaggerV2
impl UnwindSafe for SwaggerV2
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