pub struct ReplicationState {
pub replica_timestamp: Option<OffsetDateTime>,
pub replica_status: ReplicationStatusType,
pub delete_marker: bool,
pub replication_timestamp: Option<OffsetDateTime>,
pub replication_status_internal: Option<String>,
pub version_purge_status_internal: Option<String>,
pub replicate_decision_str: String,
pub targets: HashMap<String, ReplicationStatusType>,
pub purge_targets: HashMap<String, VersionPurgeStatusType>,
pub reset_statuses_map: HashMap<String, String>,
pub target_delete_marker_version_ids: HashMap<String, String>,
pub target_delete_marker_version_ids_corrupt: bool,
}Fields§
§replica_timestamp: Option<OffsetDateTime>§replica_status: ReplicationStatusType§delete_marker: bool§replication_timestamp: Option<OffsetDateTime>§replication_status_internal: Option<String>§version_purge_status_internal: Option<String>§replicate_decision_str: String§targets: HashMap<String, ReplicationStatusType>§purge_targets: HashMap<String, VersionPurgeStatusType>§reset_statuses_map: HashMap<String, String>§target_delete_marker_version_ids: HashMap<String, String>Exact version id the delete marker got on each replication target, keyed
by target ARN. Skipped by serde: ReplicationState has a positional wire
form, so this travels in the object’s internal metadata instead and is
re-derived on read. See persist_target_delete_marker_versions.
target_delete_marker_version_ids_corrupt: boolSet when the persisted keys disagreed across the dual internal prefixes, so callers fail closed instead of purging the wrong target version.
Implementations§
Source§impl ReplicationState
impl ReplicationState
pub fn new() -> Self
Sourcepub fn equal(&self, other: &ReplicationState) -> bool
pub fn equal(&self, other: &ReplicationState) -> bool
Returns true if replication state is identical for version purge statuses and replication statuses
Sourcepub fn composite_replication_status(&self) -> ReplicationStatusType
pub fn composite_replication_status(&self) -> ReplicationStatusType
Returns overall replication status for the object version being replicated
Sourcepub fn composite_version_purge_status(&self) -> VersionPurgeStatusType
pub fn composite_version_purge_status(&self) -> VersionPurgeStatusType
Returns overall replication purge status for the permanent delete being replicated
Sourcepub fn target_state(&self, arn: &str) -> ReplicatedTargetInfo
pub fn target_state(&self, arn: &str) -> ReplicatedTargetInfo
Returns replicatedInfos struct initialized with the previous state of replication