Struct rweb::openapi::Info [−][src]
pub struct Info {
pub title: Cow<'static, str>,
pub description: Cow<'static, str>,
pub terms_of_service: Option<Url>,
pub version: Cow<'static, str>,
pub contact: Option<Contact>,
pub license: Option<License>,
}
Expand description
General information about the API.
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#infoObject.
Fields
title: Cow<'static, str>
The title of the application.
description: Cow<'static, str>
A short description of the application. CommonMark syntax MAY be used for rich text representation.
terms_of_service: Option<Url>
A URL to the Terms of Service for the API. MUST be in the format of a URL.
version: Cow<'static, str>
The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version).
contact: Option<Contact>
The contact information for the exposed API.
license: Option<License>
The license information for the exposed API.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Info, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Info, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Info
impl UnwindSafe for Info
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
type Output = T
type Output = T
Should always be Self