pub struct ApiInfo {
pub title: String,
pub version: String,
pub description: Option<String>,
pub summary: Option<String>,
pub terms_of_service: Option<String>,
pub contact: Option<Contact>,
pub license_name: Option<String>,
pub license_url: Option<String>,
pub license_identifier: Option<String>,
pub extensions: Vec<(String, ValueRef)>,
}Fields§
§title: String§version: String§description: Option<String>§summary: Option<String>Short OpenAPI-3.1 summary line, distinct from description.
terms_of_service: Option<String>URL pointing to the API’s terms of service.
contact: Option<Contact>info.contact block (any of name / url / email).
license_name: Option<String>info.license.name — required by OAS when license is present.
license_url: Option<String>info.license.url — mutually exclusive with license.identifier
in OAS 3.1+, but kept independent here so 3.0 specs round-trip.
license_identifier: Option<String>SPDX license identifier (3.1 info.license.identifier).
extensions: Vec<(String, ValueRef)>x-* extensions declared on the info object. Compound
extensions drop with parser/W-EXTENSION-DROPPED.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiInfo
impl<'de> Deserialize<'de> for ApiInfo
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 ApiInfo
Auto Trait Implementations§
impl Freeze for ApiInfo
impl RefUnwindSafe for ApiInfo
impl Send for ApiInfo
impl Sync for ApiInfo
impl Unpin for ApiInfo
impl UnsafeUnpin for ApiInfo
impl UnwindSafe for ApiInfo
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