#[non_exhaustive]pub struct CreateConnectionOAuthRequestParameters {
pub client_parameters: Option<CreateConnectionOAuthClientRequestParameters>,
pub authorization_endpoint: String,
pub http_method: ConnectionOAuthHttpMethod,
pub o_auth_http_parameters: Option<ConnectionHttpParameters>,
}Expand description
Contains the OAuth authorization parameters to use for the connection.
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<CreateConnectionOAuthClientRequestParameters>A CreateConnectionOAuthClientRequestParameters object that contains the client parameters for OAuth authorization.
The URL to the authorization endpoint when OAuth is specified as the authorization type.
http_method: ConnectionOAuthHttpMethodThe method to use for the authorization request.
o_auth_http_parameters: Option<ConnectionHttpParameters>A ConnectionHttpParameters object that contains details about the additional parameters to use for the connection.
Implementations§
source§impl CreateConnectionOAuthRequestParameters
impl CreateConnectionOAuthRequestParameters
sourcepub fn client_parameters(
&self,
) -> Option<&CreateConnectionOAuthClientRequestParameters>
pub fn client_parameters( &self, ) -> Option<&CreateConnectionOAuthClientRequestParameters>
A CreateConnectionOAuthClientRequestParameters object that contains the client parameters for OAuth authorization.
The URL to the authorization endpoint when OAuth is specified as the authorization type.
sourcepub fn http_method(&self) -> &ConnectionOAuthHttpMethod
pub fn http_method(&self) -> &ConnectionOAuthHttpMethod
The method to use for the authorization request.
sourcepub fn o_auth_http_parameters(&self) -> Option<&ConnectionHttpParameters>
pub fn o_auth_http_parameters(&self) -> Option<&ConnectionHttpParameters>
A ConnectionHttpParameters object that contains details about the additional parameters to use for the connection.
source§impl CreateConnectionOAuthRequestParameters
impl CreateConnectionOAuthRequestParameters
sourcepub fn builder() -> CreateConnectionOAuthRequestParametersBuilder
pub fn builder() -> CreateConnectionOAuthRequestParametersBuilder
Creates a new builder-style object to manufacture CreateConnectionOAuthRequestParameters.
Trait Implementations§
source§impl Clone for CreateConnectionOAuthRequestParameters
impl Clone for CreateConnectionOAuthRequestParameters
source§fn clone(&self) -> CreateConnectionOAuthRequestParameters
fn clone(&self) -> CreateConnectionOAuthRequestParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for CreateConnectionOAuthRequestParameters
impl PartialEq for CreateConnectionOAuthRequestParameters
source§fn eq(&self, other: &CreateConnectionOAuthRequestParameters) -> bool
fn eq(&self, other: &CreateConnectionOAuthRequestParameters) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateConnectionOAuthRequestParameters
Auto Trait Implementations§
impl Freeze for CreateConnectionOAuthRequestParameters
impl RefUnwindSafe for CreateConnectionOAuthRequestParameters
impl Send for CreateConnectionOAuthRequestParameters
impl Sync for CreateConnectionOAuthRequestParameters
impl Unpin for CreateConnectionOAuthRequestParameters
impl UnwindSafe for CreateConnectionOAuthRequestParameters
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