#[non_exhaustive]pub struct ConnectionOAuthResponseParameters {
pub client_parameters: Option<ConnectionOAuthClientResponseParameters>,
pub authorization_endpoint: Option<String>,
pub http_method: Option<ConnectionOAuthHttpMethod>,
pub o_auth_http_parameters: Option<ConnectionHttpParameters>,
}
Expand description
Contains the response parameters when OAuth is specified as the authorization type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.client_parameters: Option<ConnectionOAuthClientResponseParameters>
A ConnectionOAuthClientResponseParameters
object that contains details about the client parameters returned when OAuth is specified as the authorization type.
The URL to the HTTP endpoint that authorized the request.
http_method: Option<ConnectionOAuthHttpMethod>
The method used to connect to the HTTP endpoint.
o_auth_http_parameters: Option<ConnectionHttpParameters>
The additional HTTP parameters used for the OAuth authorization request.
Implementations§
source§impl ConnectionOAuthResponseParameters
impl ConnectionOAuthResponseParameters
sourcepub fn client_parameters(
&self
) -> Option<&ConnectionOAuthClientResponseParameters>
pub fn client_parameters( &self ) -> Option<&ConnectionOAuthClientResponseParameters>
A ConnectionOAuthClientResponseParameters
object that contains details about the client parameters returned when OAuth is specified as the authorization type.
The URL to the HTTP endpoint that authorized the request.
sourcepub fn http_method(&self) -> Option<&ConnectionOAuthHttpMethod>
pub fn http_method(&self) -> Option<&ConnectionOAuthHttpMethod>
The method used to connect to the HTTP endpoint.
sourcepub fn o_auth_http_parameters(&self) -> Option<&ConnectionHttpParameters>
pub fn o_auth_http_parameters(&self) -> Option<&ConnectionHttpParameters>
The additional HTTP parameters used for the OAuth authorization request.
source§impl ConnectionOAuthResponseParameters
impl ConnectionOAuthResponseParameters
sourcepub fn builder() -> ConnectionOAuthResponseParametersBuilder
pub fn builder() -> ConnectionOAuthResponseParametersBuilder
Creates a new builder-style object to manufacture ConnectionOAuthResponseParameters
.
Trait Implementations§
source§impl Clone for ConnectionOAuthResponseParameters
impl Clone for ConnectionOAuthResponseParameters
source§fn clone(&self) -> ConnectionOAuthResponseParameters
fn clone(&self) -> ConnectionOAuthResponseParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ConnectionOAuthResponseParameters
impl PartialEq for ConnectionOAuthResponseParameters
source§fn eq(&self, other: &ConnectionOAuthResponseParameters) -> bool
fn eq(&self, other: &ConnectionOAuthResponseParameters) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConnectionOAuthResponseParameters
Auto Trait Implementations§
impl Freeze for ConnectionOAuthResponseParameters
impl RefUnwindSafe for ConnectionOAuthResponseParameters
impl Send for ConnectionOAuthResponseParameters
impl Sync for ConnectionOAuthResponseParameters
impl Unpin for ConnectionOAuthResponseParameters
impl UnwindSafe for ConnectionOAuthResponseParameters
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more