#[non_exhaustive]pub struct CreateConnectionOAuthRequestParametersBuilder { /* private fields */ }
Expand description
A builder for CreateConnectionOAuthRequestParameters
.
Implementations§
source§impl CreateConnectionOAuthRequestParametersBuilder
impl CreateConnectionOAuthRequestParametersBuilder
sourcepub fn client_parameters(
self,
input: CreateConnectionOAuthClientRequestParameters
) -> Self
pub fn client_parameters( self, input: CreateConnectionOAuthClientRequestParameters ) -> Self
A CreateConnectionOAuthClientRequestParameters
object that contains the client parameters for OAuth authorization.
sourcepub fn set_client_parameters(
self,
input: Option<CreateConnectionOAuthClientRequestParameters>
) -> Self
pub fn set_client_parameters( self, input: Option<CreateConnectionOAuthClientRequestParameters> ) -> Self
A CreateConnectionOAuthClientRequestParameters
object that contains the client parameters for OAuth authorization.
sourcepub fn get_client_parameters(
&self
) -> &Option<CreateConnectionOAuthClientRequestParameters>
pub fn get_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.
This field is required.The URL to the authorization endpoint when OAuth is specified as the authorization type.
The URL to the authorization endpoint when OAuth is specified as the authorization type.
sourcepub fn http_method(self, input: ConnectionOAuthHttpMethod) -> Self
pub fn http_method(self, input: ConnectionOAuthHttpMethod) -> Self
The method to use for the authorization request.
This field is required.sourcepub fn set_http_method(self, input: Option<ConnectionOAuthHttpMethod>) -> Self
pub fn set_http_method(self, input: Option<ConnectionOAuthHttpMethod>) -> Self
The method to use for the authorization request.
sourcepub fn get_http_method(&self) -> &Option<ConnectionOAuthHttpMethod>
pub fn get_http_method(&self) -> &Option<ConnectionOAuthHttpMethod>
The method to use for the authorization request.
sourcepub fn o_auth_http_parameters(self, input: ConnectionHttpParameters) -> Self
pub fn o_auth_http_parameters(self, input: ConnectionHttpParameters) -> Self
A ConnectionHttpParameters
object that contains details about the additional parameters to use for the connection.
sourcepub fn set_o_auth_http_parameters(
self,
input: Option<ConnectionHttpParameters>
) -> Self
pub fn set_o_auth_http_parameters( self, input: Option<ConnectionHttpParameters> ) -> Self
A ConnectionHttpParameters
object that contains details about the additional parameters to use for the connection.
sourcepub fn get_o_auth_http_parameters(&self) -> &Option<ConnectionHttpParameters>
pub fn get_o_auth_http_parameters(&self) -> &Option<ConnectionHttpParameters>
A ConnectionHttpParameters
object that contains details about the additional parameters to use for the connection.
sourcepub fn build(self) -> Result<CreateConnectionOAuthRequestParameters, BuildError>
pub fn build(self) -> Result<CreateConnectionOAuthRequestParameters, BuildError>
Consumes the builder and constructs a CreateConnectionOAuthRequestParameters
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateConnectionOAuthRequestParametersBuilder
impl Clone for CreateConnectionOAuthRequestParametersBuilder
source§fn clone(&self) -> CreateConnectionOAuthRequestParametersBuilder
fn clone(&self) -> CreateConnectionOAuthRequestParametersBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateConnectionOAuthRequestParametersBuilder
impl Default for CreateConnectionOAuthRequestParametersBuilder
source§fn default() -> CreateConnectionOAuthRequestParametersBuilder
fn default() -> CreateConnectionOAuthRequestParametersBuilder
source§impl PartialEq for CreateConnectionOAuthRequestParametersBuilder
impl PartialEq for CreateConnectionOAuthRequestParametersBuilder
source§fn eq(&self, other: &CreateConnectionOAuthRequestParametersBuilder) -> bool
fn eq(&self, other: &CreateConnectionOAuthRequestParametersBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateConnectionOAuthRequestParametersBuilder
Auto Trait Implementations§
impl Freeze for CreateConnectionOAuthRequestParametersBuilder
impl RefUnwindSafe for CreateConnectionOAuthRequestParametersBuilder
impl Send for CreateConnectionOAuthRequestParametersBuilder
impl Sync for CreateConnectionOAuthRequestParametersBuilder
impl Unpin for CreateConnectionOAuthRequestParametersBuilder
impl UnwindSafe for CreateConnectionOAuthRequestParametersBuilder
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