pub struct OutboundDmEntry {
pub room_owner_vk: [u8; 32],
pub sender: MemberId,
pub recipient: MemberId,
pub purge_token: PurgeToken,
pub timestamp: u64,
pub plaintext: String,
}Expand description
A single outbound DM the local user composed and sent.
purge_token matches AuthorizedDirectMessage::purge_token() for
the ciphertext that was emitted, so the UI/CLI can join the local
plaintext to the contract-state ciphertext entry, and so that
purge tombstones (which list PurgeTokens) can prune this store in
lockstep with the contract.
Fields§
§room_owner_vk: [u8; 32]Room owner verifying key — disambiguates the same recipient
being a member of multiple rooms. Raw 32 bytes to match the
RoomKey convention used elsewhere in this module and to keep
the type JSON-friendly.
sender: MemberIdLocal user’s MemberId at send time, derived from the room
signing key. Present so a second device that re-loads under a
different room identity can tell which of its identities sent
the DM.
recipient: MemberId§purge_token: PurgeToken§timestamp: u64Unix seconds — same value used in the on-wire DirectMessage.
plaintext: StringTrait Implementations§
Source§impl Clone for OutboundDmEntry
impl Clone for OutboundDmEntry
Source§fn clone(&self) -> OutboundDmEntry
fn clone(&self) -> OutboundDmEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OutboundDmEntry
impl Debug for OutboundDmEntry
Source§impl<'de> Deserialize<'de> for OutboundDmEntry
impl<'de> Deserialize<'de> for OutboundDmEntry
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>,
Source§impl PartialEq for OutboundDmEntry
impl PartialEq for OutboundDmEntry
Source§fn eq(&self, other: &OutboundDmEntry) -> bool
fn eq(&self, other: &OutboundDmEntry) -> bool
self and other values to be equal, and is used by ==.