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,
}Expand description
ReplicationState represents internal replication state
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>Skipped by serde: this state has a positional wire form, so the map travels in the object’s internal metadata and is re-derived on read. Kept in step with the filemeta crate’s copy of the same state.
target_delete_marker_version_ids_corrupt: boolImplementations§
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
Trait Implementations§
Source§impl Clone for ReplicationState
impl Clone for ReplicationState
Source§impl Debug for ReplicationState
impl Debug for ReplicationState
Source§impl Default for ReplicationState
impl Default for ReplicationState
Source§impl<'de> Deserialize<'de> for ReplicationState
impl<'de> Deserialize<'de> for ReplicationState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReplicationState
Source§impl PartialEq for ReplicationState
impl PartialEq for ReplicationState
Source§impl Serialize for ReplicationState
impl Serialize for ReplicationState
impl StructuralPartialEq for ReplicationState
Auto Trait Implementations§
impl Freeze for ReplicationState
impl RefUnwindSafe for ReplicationState
impl Send for ReplicationState
impl Sync for ReplicationState
impl Unpin for ReplicationState
impl UnsafeUnpin for ReplicationState
impl UnwindSafe for ReplicationState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.