#[non_exhaustive]pub struct CustomAuthCredentialsBuilder { /* private fields */ }
Expand description
A builder for CustomAuthCredentials
.
Implementations§
source§impl CustomAuthCredentialsBuilder
impl CustomAuthCredentialsBuilder
sourcepub fn custom_authentication_type(self, input: impl Into<String>) -> Self
pub fn custom_authentication_type(self, input: impl Into<String>) -> Self
The custom authentication type that the connector uses.
This field is required.sourcepub fn set_custom_authentication_type(self, input: Option<String>) -> Self
pub fn set_custom_authentication_type(self, input: Option<String>) -> Self
The custom authentication type that the connector uses.
sourcepub fn get_custom_authentication_type(&self) -> &Option<String>
pub fn get_custom_authentication_type(&self) -> &Option<String>
The custom authentication type that the connector uses.
sourcepub fn credentials_map(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn credentials_map(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to credentials_map
.
To override the contents of this collection use set_credentials_map
.
A map that holds custom authentication credentials.
sourcepub fn set_credentials_map(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_credentials_map(self, input: Option<HashMap<String, String>>) -> Self
A map that holds custom authentication credentials.
sourcepub fn get_credentials_map(&self) -> &Option<HashMap<String, String>>
pub fn get_credentials_map(&self) -> &Option<HashMap<String, String>>
A map that holds custom authentication credentials.
sourcepub fn build(self) -> Result<CustomAuthCredentials, BuildError>
pub fn build(self) -> Result<CustomAuthCredentials, BuildError>
Consumes the builder and constructs a CustomAuthCredentials
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CustomAuthCredentialsBuilder
impl Clone for CustomAuthCredentialsBuilder
source§fn clone(&self) -> CustomAuthCredentialsBuilder
fn clone(&self) -> CustomAuthCredentialsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CustomAuthCredentialsBuilder
impl Debug for CustomAuthCredentialsBuilder
source§impl Default for CustomAuthCredentialsBuilder
impl Default for CustomAuthCredentialsBuilder
source§fn default() -> CustomAuthCredentialsBuilder
fn default() -> CustomAuthCredentialsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CustomAuthCredentialsBuilder
impl PartialEq for CustomAuthCredentialsBuilder
source§fn eq(&self, other: &CustomAuthCredentialsBuilder) -> bool
fn eq(&self, other: &CustomAuthCredentialsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomAuthCredentialsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CustomAuthCredentialsBuilder
impl Send for CustomAuthCredentialsBuilder
impl Sync for CustomAuthCredentialsBuilder
impl Unpin for CustomAuthCredentialsBuilder
impl UnwindSafe for CustomAuthCredentialsBuilder
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
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>
Creates a shared type from an unshared type.