pub struct Spec {Show 20 fields
pub spec_version: String,
pub info: Info,
pub servers: Vec<Server>,
pub paths: HashMap<String, RefOr<PathItem>>,
pub components: Option<Components>,
pub security: Vec<HashMap<String, Vec<String>>>,
pub tags: Vec<Tag>,
pub external_docs: Option<ExternalDocumentation>,
pub x_fields: HashMap<String, Value>,
pub host: Option<String>,
pub base_path: Option<String>,
pub schemes: Vec<Scheme>,
pub consumes: Vec<String>,
pub produces: Vec<String>,
pub definitions: HashMap<String, RefOr<Schema>>,
pub parameters: HashMap<String, RefOr<Parameter>>,
pub responses: HashMap<String, RefOr<Response>>,
pub security_definitions: HashMap<String, RefOr<SecurityScheme>>,
pub json_schema_dialect: Option<String>,
pub webhooks: HashMap<String, RefOr<PathItem>>,
}
Fields§
§spec_version: String
§info: Info
§servers: Vec<Server>
§paths: HashMap<String, RefOr<PathItem>>
§components: Option<Components>
§security: Vec<HashMap<String, Vec<String>>>
§external_docs: Option<ExternalDocumentation>
§x_fields: HashMap<String, Value>
Allows extensions to the Swagger Schema. The field name MUST begin with x-, for example, x-internal-id. The value can be null, a primitive, an array or an object. See Vendor Extensions for further details.
host: Option<String>
§base_path: Option<String>
§schemes: Vec<Scheme>
§consumes: Vec<String>
§produces: Vec<String>
§definitions: HashMap<String, RefOr<Schema>>
§parameters: HashMap<String, RefOr<Parameter>>
§responses: HashMap<String, RefOr<Response>>
§security_definitions: HashMap<String, RefOr<SecurityScheme>>
§json_schema_dialect: Option<String>
§webhooks: HashMap<String, RefOr<PathItem>>
Implementations§
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