pub struct SyncTestMessage {
pub sync_id: String,
pub message_type: String,
pub created_offline: bool,
pub data: Vec<u8>,
pub checksum: u32,
pub timestamp: u64,
}Expand description
Test message for sync verification
Fields§
§sync_id: String§message_type: String§created_offline: bool§data: Vec<u8>§checksum: u32§timestamp: u64Implementations§
Source§impl SyncTestMessage
impl SyncTestMessage
pub fn new_offline(sync_id: String, data_size: usize) -> Self
pub fn verify_integrity(&self) -> bool
Trait Implementations§
Source§impl Clone for SyncTestMessage
impl Clone for SyncTestMessage
Source§fn clone(&self) -> SyncTestMessage
fn clone(&self) -> SyncTestMessage
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 SyncTestMessage
impl Debug for SyncTestMessage
Source§impl<'de> Deserialize<'de> for SyncTestMessage
impl<'de> Deserialize<'de> for SyncTestMessage
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 SyncTestMessage
impl RefUnwindSafe for SyncTestMessage
impl Send for SyncTestMessage
impl Sync for SyncTestMessage
impl Unpin for SyncTestMessage
impl UnwindSafe for SyncTestMessage
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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