Struct aws_sdk_iot::types::RepublishAction
source · #[non_exhaustive]pub struct RepublishAction {
pub role_arn: String,
pub topic: String,
pub qos: Option<i32>,
pub headers: Option<MqttHeaders>,
}
Expand description
Describes an action to republish to another topic.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.role_arn: String
The ARN of the IAM role that grants access.
topic: String
The name of the MQTT topic.
qos: Option<i32>
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
headers: Option<MqttHeaders>
MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web Services IoT Core Developer Guide.
Implementations§
source§impl RepublishAction
impl RepublishAction
sourcepub fn qos(&self) -> Option<i32>
pub fn qos(&self) -> Option<i32>
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
sourcepub fn headers(&self) -> Option<&MqttHeaders>
pub fn headers(&self) -> Option<&MqttHeaders>
MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web Services IoT Core Developer Guide.
source§impl RepublishAction
impl RepublishAction
sourcepub fn builder() -> RepublishActionBuilder
pub fn builder() -> RepublishActionBuilder
Creates a new builder-style object to manufacture RepublishAction
.
Trait Implementations§
source§impl Clone for RepublishAction
impl Clone for RepublishAction
source§fn clone(&self) -> RepublishAction
fn clone(&self) -> RepublishAction
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 RepublishAction
impl Debug for RepublishAction
source§impl PartialEq for RepublishAction
impl PartialEq for RepublishAction
source§fn eq(&self, other: &RepublishAction) -> bool
fn eq(&self, other: &RepublishAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RepublishAction
Auto Trait Implementations§
impl Freeze for RepublishAction
impl RefUnwindSafe for RepublishAction
impl Send for RepublishAction
impl Sync for RepublishAction
impl Unpin for RepublishAction
impl UnwindSafe for RepublishAction
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.