pub struct ApiInfo {
pub title: String,
pub description: Option<String>,
pub version: String,
pub terms_of_service: Option<String>,
pub contact: Option<Contact>,
pub license: Option<License>,
}Expand description
API information section
Fields§
§title: StringAPI title
description: Option<String>API description
version: StringAPI version
terms_of_service: Option<String>Terms of service URL
contact: Option<Contact>Contact information
license: Option<License>License information
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
Auto Trait Implementations§
impl Freeze for ApiInfo
impl RefUnwindSafe for ApiInfo
impl Send for ApiInfo
impl Sync for ApiInfo
impl Unpin 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