Skip to main content

ReplicateObjectInfo

Struct ReplicateObjectInfo 

Source
pub struct ReplicateObjectInfo {
Show 25 fields pub name: String, pub size: i64, pub actual_size: i64, pub bucket: String, pub version_id: Option<Uuid>, pub etag: Option<String>, pub mod_time: Option<OffsetDateTime>, pub replication_status: ReplicationStatusType, pub replication_status_internal: Option<String>, pub delete_marker: bool, pub version_purge_status_internal: Option<String>, pub version_purge_status: VersionPurgeStatusType, pub replication_state: Option<ReplicationState>, pub op_type: ReplicationType, pub event_type: String, pub dsc: ReplicateDecision, pub existing_obj_resync: ResyncDecision, pub target_statuses: HashMap<String, ReplicationStatusType>, pub target_purge_statuses: HashMap<String, VersionPurgeStatusType>, pub replication_timestamp: Option<OffsetDateTime>, pub replication_generation: ReplicationGenerationSnapshot, pub ssec: bool, pub user_tags: String, pub checksum: Option<Bytes>, pub retry_count: u32,
}

Fields§

§name: String§size: i64§actual_size: i64§bucket: String§version_id: Option<Uuid>§etag: Option<String>§mod_time: Option<OffsetDateTime>§replication_status: ReplicationStatusType§replication_status_internal: Option<String>§delete_marker: bool§version_purge_status_internal: Option<String>§version_purge_status: VersionPurgeStatusType§replication_state: Option<ReplicationState>§op_type: ReplicationType§event_type: String§dsc: ReplicateDecision§existing_obj_resync: ResyncDecision§target_statuses: HashMap<String, ReplicationStatusType>§target_purge_statuses: HashMap<String, VersionPurgeStatusType>§replication_timestamp: Option<OffsetDateTime>§replication_generation: ReplicationGenerationSnapshot

Exact persisted source snapshot used to fence terminal status write-back after remote I/O.

§ssec: bool§user_tags: String§checksum: Option<Bytes>§retry_count: u32

Implementations§

Source§

impl ReplicateObjectInfo

Source

pub fn admitted_target_arns(&self) -> Vec<String>

Returns the target set captured when this queued operation was admitted. Resync decisions are more specific than the general heal decision and must win for ExistingObject work.

Source

pub fn target_replication_status(&self, arn: &str) -> ReplicationStatusType

Returns replication status of a target

Source

pub fn to_mrf_entry(&self) -> MrfReplicateEntry

Returns the relevant info needed by MRF

Trait Implementations§

Source§

impl Clone for ReplicateObjectInfo

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ReplicateObjectInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ReplicateObjectInfo

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ReplicateObjectInfo

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl ReplicationWorkerOperation for ReplicateObjectInfo

Source§

impl Serialize for ReplicateObjectInfo

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromExt for T

Source§

fn from_<T>(t: T) -> Self
where Self: From<T>,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoExt for T

Source§

fn into_<T>(self) -> T
where Self: Into<T>,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T> TryFromExt for T

Source§

fn try_from_<T>(t: T) -> Result<Self, Self::Error>
where Self: TryFrom<T>,

Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> TryIntoExt for T

Source§

fn try_into_<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more