#[non_exhaustive]pub struct ReplicationSync {
pub last_sync_time: Option<Timestamp>,
/* private fields */
}Expand description
ReplicationSync contain information about the last replica sync to the cloud.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.last_sync_time: Option<Timestamp>The most updated snapshot created time in the source that finished replication.
Implementations§
Source§impl ReplicationSync
impl ReplicationSync
Sourcepub fn set_last_sync_time<T>(self, v: T) -> Self
pub fn set_last_sync_time<T>(self, v: T) -> Self
Sets the value of last_sync_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ReplicationSync::new().set_last_sync_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_last_sync_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_sync_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_sync_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ReplicationSync::new().set_or_clear_last_sync_time(Some(Timestamp::default()/* use setters */));
let x = ReplicationSync::new().set_or_clear_last_sync_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for ReplicationSync
impl Clone for ReplicationSync
Source§fn clone(&self) -> ReplicationSync
fn clone(&self) -> ReplicationSync
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReplicationSync
impl Debug for ReplicationSync
Source§impl Default for ReplicationSync
impl Default for ReplicationSync
Source§fn default() -> ReplicationSync
fn default() -> ReplicationSync
Returns the “default value” for a type. Read more
Source§impl Message for ReplicationSync
impl Message for ReplicationSync
Source§impl PartialEq for ReplicationSync
impl PartialEq for ReplicationSync
Source§fn eq(&self, other: &ReplicationSync) -> bool
fn eq(&self, other: &ReplicationSync) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReplicationSync
Auto Trait Implementations§
impl Freeze for ReplicationSync
impl RefUnwindSafe for ReplicationSync
impl Send for ReplicationSync
impl Sync for ReplicationSync
impl Unpin for ReplicationSync
impl UnsafeUnpin for ReplicationSync
impl UnwindSafe for ReplicationSync
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