pub struct PushSession {
pub id: String,
pub machine_id: String,
pub encrypted_data: String,
pub metadata: SessionMetadata,
pub updated_at: DateTime<Utc>,
}Expand description
A session prepared for pushing to the cloud.
Fields§
§id: StringSession UUID.
machine_id: StringMachine UUID that created this session.
encrypted_data: StringBase64-encoded encrypted message data.
metadata: SessionMetadataUnencrypted session metadata.
updated_at: DateTime<Utc>When this session was last updated locally.
Trait Implementations§
Source§impl Clone for PushSession
impl Clone for PushSession
Source§fn clone(&self) -> PushSession
fn clone(&self) -> PushSession
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 PushSession
impl Debug for PushSession
Source§impl<'de> Deserialize<'de> for PushSession
impl<'de> Deserialize<'de> for PushSession
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 PushSession
impl RefUnwindSafe for PushSession
impl Send for PushSession
impl Sync for PushSession
impl Unpin for PushSession
impl UnwindSafe for PushSession
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