#[non_exhaustive]pub struct ConnectionCredentialsBuilder { /* private fields */ }
Expand description
A builder for ConnectionCredentials
.
Implementations§
source§impl ConnectionCredentialsBuilder
impl ConnectionCredentialsBuilder
sourcepub fn connection_token(self, input: impl Into<String>) -> Self
pub fn connection_token(self, input: impl Into<String>) -> Self
The connection token.
sourcepub fn set_connection_token(self, input: Option<String>) -> Self
pub fn set_connection_token(self, input: Option<String>) -> Self
The connection token.
sourcepub fn get_connection_token(&self) -> &Option<String>
pub fn get_connection_token(&self) -> &Option<String>
The connection token.
sourcepub fn expiry(self, input: impl Into<String>) -> Self
pub fn expiry(self, input: impl Into<String>) -> Self
The expiration of the token.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
sourcepub fn set_expiry(self, input: Option<String>) -> Self
pub fn set_expiry(self, input: Option<String>) -> Self
The expiration of the token.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
sourcepub fn get_expiry(&self) -> &Option<String>
pub fn get_expiry(&self) -> &Option<String>
The expiration of the token.
It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
sourcepub fn build(self) -> ConnectionCredentials
pub fn build(self) -> ConnectionCredentials
Consumes the builder and constructs a ConnectionCredentials
.
Trait Implementations§
source§impl Clone for ConnectionCredentialsBuilder
impl Clone for ConnectionCredentialsBuilder
source§fn clone(&self) -> ConnectionCredentialsBuilder
fn clone(&self) -> ConnectionCredentialsBuilder
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 ConnectionCredentialsBuilder
impl Debug for ConnectionCredentialsBuilder
source§impl Default for ConnectionCredentialsBuilder
impl Default for ConnectionCredentialsBuilder
source§fn default() -> ConnectionCredentialsBuilder
fn default() -> ConnectionCredentialsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ConnectionCredentialsBuilder
impl PartialEq for ConnectionCredentialsBuilder
source§fn eq(&self, other: &ConnectionCredentialsBuilder) -> bool
fn eq(&self, other: &ConnectionCredentialsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConnectionCredentialsBuilder
Auto Trait Implementations§
impl Freeze for ConnectionCredentialsBuilder
impl RefUnwindSafe for ConnectionCredentialsBuilder
impl Send for ConnectionCredentialsBuilder
impl Sync for ConnectionCredentialsBuilder
impl Unpin for ConnectionCredentialsBuilder
impl UnwindSafe for ConnectionCredentialsBuilder
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.