Struct aws_sdk_mq::types::DataReplicationMetadataOutput
source · #[non_exhaustive]pub struct DataReplicationMetadataOutput {
pub data_replication_counterpart: Option<DataReplicationCounterpart>,
pub data_replication_role: Option<String>,
}
Expand description
The replication details of the data replication-enabled broker. Only returned if dataReplicationMode or pendingDataReplicationMode is set to CRDR.
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.data_replication_counterpart: Option<DataReplicationCounterpart>
Describes the replica/primary broker. Only returned if this broker is currently set as a primary or replica in the broker's dataReplicationRole property.
data_replication_role: Option<String>
Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.
Implementations§
source§impl DataReplicationMetadataOutput
impl DataReplicationMetadataOutput
sourcepub fn data_replication_counterpart(
&self
) -> Option<&DataReplicationCounterpart>
pub fn data_replication_counterpart( &self ) -> Option<&DataReplicationCounterpart>
Describes the replica/primary broker. Only returned if this broker is currently set as a primary or replica in the broker's dataReplicationRole property.
sourcepub fn data_replication_role(&self) -> Option<&str>
pub fn data_replication_role(&self) -> Option<&str>
Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.
source§impl DataReplicationMetadataOutput
impl DataReplicationMetadataOutput
sourcepub fn builder() -> DataReplicationMetadataOutputBuilder
pub fn builder() -> DataReplicationMetadataOutputBuilder
Creates a new builder-style object to manufacture DataReplicationMetadataOutput
.
Trait Implementations§
source§impl Clone for DataReplicationMetadataOutput
impl Clone for DataReplicationMetadataOutput
source§fn clone(&self) -> DataReplicationMetadataOutput
fn clone(&self) -> DataReplicationMetadataOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for DataReplicationMetadataOutput
impl PartialEq for DataReplicationMetadataOutput
source§fn eq(&self, other: &DataReplicationMetadataOutput) -> bool
fn eq(&self, other: &DataReplicationMetadataOutput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DataReplicationMetadataOutput
Auto Trait Implementations§
impl Freeze for DataReplicationMetadataOutput
impl RefUnwindSafe for DataReplicationMetadataOutput
impl Send for DataReplicationMetadataOutput
impl Sync for DataReplicationMetadataOutput
impl Unpin for DataReplicationMetadataOutput
impl UnwindSafe for DataReplicationMetadataOutput
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
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>
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>
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 more