[−][src]Struct rweb_openapi::v2::Spec
top level document
Fields
swagger: StringThe Swagger version of this document.
info: Infohost: Option<String>base_path: Option<String>The base path to the API. Example: '/api'.
schemes: Option<Vec<Scheme>>consumes: Option<Vec<String>>A list of MIME types accepted by the API.
produces: Option<Vec<String>>A list of MIME types the API can produce.
paths: BTreeMap<String, PathItem>Relative paths to the individual endpoints. They must be relative to the 'basePath'.
definitions: Option<BTreeMap<String, Schema>>parameters: Option<BTreeMap<String, Parameter>>responses: Option<BTreeMap<String, Response>>mappings to http response codes or "default"
security_definitions: Option<BTreeMap<String, Security>>security: Option<Vec<BTreeMap<String, Vec<String>>>>external_docs: Option<Vec<ExternalDoc>>Trait Implementations
impl Clone for Spec[src]
impl Debug for Spec[src]
impl Default for Spec[src]
impl<'de> Deserialize<'de> for Spec[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl PartialEq<Spec> for Spec[src]
impl Serialize for Spec[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for Spec[src]
Auto Trait Implementations
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnwindSafe for Spec
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,