pub struct HttpBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> HttpBuilder<S>
impl<S: State> HttpBuilder<S>
Sourcepub fn scheme(
self,
value: impl Into<HttpAuthScheme>,
) -> HttpBuilder<SetScheme<S>>where
S::Scheme: IsUnset,
pub fn scheme(
self,
value: impl Into<HttpAuthScheme>,
) -> HttpBuilder<SetScheme<S>>where
S::Scheme: IsUnset,
Required.
Http authorization scheme in HTTP Authorization
header value.
Sourcepub fn bearer_format(
self,
value: impl Into<String>,
) -> HttpBuilder<SetBearerFormat<S>>where
S::BearerFormat: IsUnset,
pub fn bearer_format(
self,
value: impl Into<String>,
) -> HttpBuilder<SetBearerFormat<S>>where
S::BearerFormat: IsUnset,
Optional (Some / Option setters).
Optional hint to client how the bearer token is formatted. Valid only with HttpAuthScheme::Bearer
.
Sourcepub fn maybe_bearer_format(
self,
value: Option<impl Into<String>>,
) -> HttpBuilder<SetBearerFormat<S>>where
S::BearerFormat: IsUnset,
pub fn maybe_bearer_format(
self,
value: Option<impl Into<String>>,
) -> HttpBuilder<SetBearerFormat<S>>where
S::BearerFormat: IsUnset,
Optional (Some / Option setters).
Optional hint to client how the bearer token is formatted. Valid only with HttpAuthScheme::Bearer
.
Sourcepub fn description(
self,
value: impl Into<String>,
) -> HttpBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<String>,
) -> HttpBuilder<SetDescription<S>>where
S::Description: IsUnset,
Optional (Some / Option setters).
Optional description of Http
SecurityScheme
supporting markdown syntax.
Sourcepub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> HttpBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> HttpBuilder<SetDescription<S>>where
S::Description: IsUnset,
Optional (Some / Option setters).
Optional description of Http
SecurityScheme
supporting markdown syntax.
Sourcepub fn extensions(
self,
value: impl Into<Extensions>,
) -> HttpBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn extensions(
self,
value: impl Into<Extensions>,
) -> HttpBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Sourcepub fn maybe_extensions(
self,
value: Option<impl Into<Extensions>>,
) -> HttpBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn maybe_extensions(
self,
value: Option<impl Into<Extensions>>,
) -> HttpBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for HttpBuilder<S>
impl<S> RefUnwindSafe for HttpBuilder<S>
impl<S> Send for HttpBuilder<S>
impl<S> Sync for HttpBuilder<S>
impl<S> Unpin for HttpBuilder<S>
impl<S> UnwindSafe for HttpBuilder<S>
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