pub struct Info {
pub title: String,
pub version: String,
pub description: Option<String>,
}Expand description
API information object
Contains general metadata about the API such as title, version, and description. This information is displayed in documentation tools and helps users understand the purpose and version of the API.
Fields§
§title: StringAPI title
A human-readable name for the API (e.g., “Chat WebSocket API”)
version: StringAPI version
The version of the API (e.g., “1.0.0”). Should follow semantic versioning.
description: Option<String>API description
A longer description of the API’s purpose and functionality (optional).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Info
impl<'de> Deserialize<'de> for Info
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 Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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