pub struct ReplicationOperation {
pub id: String,
pub package_id: String,
pub version: String,
pub operation_type: String,
pub source_node: String,
pub target_nodes: Vec<String>,
pub timestamp: DateTime<Utc>,
pub status: OperationStatus,
}Expand description
Replication operation
Fields§
§id: StringOperation ID
package_id: StringPackage ID
version: StringPackage version
operation_type: StringOperation type (Create, Update, Delete)
source_node: StringSource node ID
target_nodes: Vec<String>Target node IDs
timestamp: DateTime<Utc>Operation timestamp
status: OperationStatusOperation status
Trait Implementations§
Source§impl Clone for ReplicationOperation
impl Clone for ReplicationOperation
Source§fn clone(&self) -> ReplicationOperation
fn clone(&self) -> ReplicationOperation
Returns a duplicate 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 ReplicationOperation
impl Debug for ReplicationOperation
Source§impl<'de> Deserialize<'de> for ReplicationOperation
impl<'de> Deserialize<'de> for ReplicationOperation
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
Auto Trait Implementations§
impl Freeze for ReplicationOperation
impl RefUnwindSafe for ReplicationOperation
impl Send for ReplicationOperation
impl Sync for ReplicationOperation
impl Unpin for ReplicationOperation
impl UnsafeUnpin for ReplicationOperation
impl UnwindSafe for ReplicationOperation
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,
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>
Converts
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>
Converts
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