Struct aws_sdk_iot::types::builders::MqttContextBuilder
source · #[non_exhaustive]pub struct MqttContextBuilder { /* private fields */ }
Expand description
A builder for MqttContext
.
Implementations§
source§impl MqttContextBuilder
impl MqttContextBuilder
sourcepub fn username(self, input: impl Into<String>) -> Self
pub fn username(self, input: impl Into<String>) -> Self
The value of the username
key in an MQTT authorization request.
sourcepub fn set_username(self, input: Option<String>) -> Self
pub fn set_username(self, input: Option<String>) -> Self
The value of the username
key in an MQTT authorization request.
sourcepub fn get_username(&self) -> &Option<String>
pub fn get_username(&self) -> &Option<String>
The value of the username
key in an MQTT authorization request.
sourcepub fn password(self, input: Blob) -> Self
pub fn password(self, input: Blob) -> Self
The value of the password
key in an MQTT authorization request.
sourcepub fn set_password(self, input: Option<Blob>) -> Self
pub fn set_password(self, input: Option<Blob>) -> Self
The value of the password
key in an MQTT authorization request.
sourcepub fn get_password(&self) -> &Option<Blob>
pub fn get_password(&self) -> &Option<Blob>
The value of the password
key in an MQTT authorization request.
sourcepub fn client_id(self, input: impl Into<String>) -> Self
pub fn client_id(self, input: impl Into<String>) -> Self
The value of the clientId
key in an MQTT authorization request.
sourcepub fn set_client_id(self, input: Option<String>) -> Self
pub fn set_client_id(self, input: Option<String>) -> Self
The value of the clientId
key in an MQTT authorization request.
sourcepub fn get_client_id(&self) -> &Option<String>
pub fn get_client_id(&self) -> &Option<String>
The value of the clientId
key in an MQTT authorization request.
sourcepub fn build(self) -> MqttContext
pub fn build(self) -> MqttContext
Consumes the builder and constructs a MqttContext
.
Trait Implementations§
source§impl Clone for MqttContextBuilder
impl Clone for MqttContextBuilder
source§fn clone(&self) -> MqttContextBuilder
fn clone(&self) -> MqttContextBuilder
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 MqttContextBuilder
impl Debug for MqttContextBuilder
source§impl Default for MqttContextBuilder
impl Default for MqttContextBuilder
source§fn default() -> MqttContextBuilder
fn default() -> MqttContextBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for MqttContextBuilder
impl PartialEq for MqttContextBuilder
source§fn eq(&self, other: &MqttContextBuilder) -> bool
fn eq(&self, other: &MqttContextBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MqttContextBuilder
Auto Trait Implementations§
impl Freeze for MqttContextBuilder
impl RefUnwindSafe for MqttContextBuilder
impl Send for MqttContextBuilder
impl Sync for MqttContextBuilder
impl Unpin for MqttContextBuilder
impl UnwindSafe for MqttContextBuilder
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.