Struct aws_sdk_iotdataplane::input::PublishInput
source · [−]#[non_exhaustive]pub struct PublishInput {
pub topic: Option<String>,
pub qos: i32,
pub retain: bool,
pub payload: Option<Blob>,
}
Expand description
The input for the Publish operation.
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.topic: Option<String>
The name of the MQTT topic.
qos: i32
The Quality of Service (QoS) level.
retain: bool
A Boolean value that determines whether to set the RETAIN flag when the message is published.
Setting the RETAIN flag causes the message to be retained and sent to new subscribers to the topic.
Valid values: true
| false
Default value: false
payload: Option<Blob>
The message body. MQTT accepts text, binary, and empty (null) message payloads.
Publishing an empty (null) payload with retain = true
deletes the retained message identified by topic from Amazon Web Services IoT Core.
Implementations
sourceimpl PublishInput
impl PublishInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<Publish, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<Publish, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<Publish
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PublishInput
sourceimpl PublishInput
impl PublishInput
Trait Implementations
sourceimpl Clone for PublishInput
impl Clone for PublishInput
sourcefn clone(&self) -> PublishInput
fn clone(&self) -> PublishInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PublishInput
impl Debug for PublishInput
sourceimpl PartialEq<PublishInput> for PublishInput
impl PartialEq<PublishInput> for PublishInput
sourcefn eq(&self, other: &PublishInput) -> bool
fn eq(&self, other: &PublishInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PublishInput) -> bool
fn ne(&self, other: &PublishInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for PublishInput
Auto Trait Implementations
impl RefUnwindSafe for PublishInput
impl Send for PublishInput
impl Sync for PublishInput
impl Unpin for PublishInput
impl UnwindSafe for PublishInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more