pub struct Spec {Show 13 fields
pub swagger: String,
pub info: Info,
pub paths: BTreeMap<String, Operations>,
pub definitions: BTreeMap<String, Schema>,
pub schemes: Option<Vec<String>>,
pub host: Option<String>,
pub base_path: Option<String>,
pub consumes: Option<Vec<String>>,
pub produces: Option<Vec<String>>,
pub parameters: Option<BTreeMap<String, Parameter>>,
pub responses: Option<BTreeMap<String, Response>>,
pub security_definitions: Option<BTreeMap<String, Security>>,
pub tags: Option<Vec<Tag>>,
}
Expand description
top level document
Fields§
§swagger: String
version string
info: Info
§paths: BTreeMap<String, Operations>
§definitions: BTreeMap<String, Schema>
§schemes: Option<Vec<String>>
§host: Option<String>
§base_path: Option<String>
§consumes: Option<Vec<String>>
§produces: Option<Vec<String>>
§parameters: Option<BTreeMap<String, Parameter>>
§responses: Option<BTreeMap<String, Response>>
§security_definitions: Option<BTreeMap<String, Security>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Spec
impl<'de> Deserialize<'de> for Spec
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
impl StructuralPartialEq for Spec
Auto Trait Implementations§
impl Freeze for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnwindSafe for Spec
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