pub struct Info {
pub title: String,
pub description: Option<String>,
pub terms_of_service: Option<String>,
pub contact: Option<Contact>,
pub license: Option<License>,
pub version: String,
}
Expand description
Provides metadata about the API.
The metadata may be used by clients if needed, and may be presented in editing or documentation generation tools for convenience.
Fields§
§title: String
The title of the application.
description: Option<String>
A verbose description of the application.
GitHub Flavored Markdown syntax may be used for rich text representation.
terms_of_service: Option<String>
A URL to the Terms of Service for the API.
This must contain an URL.
contact: Option<Contact>
contact information for the exposed API.
license: Option<License>
License information for the exposed API.
version: String
The version of the OpenRPC document.
Note that this is distinct from the openrpc
field of OpenRpc
which specifies the
version of the OpenRPC Specification used.
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