pub enum MessageEncryption {
E2ee,
Server,
}Expand description
How a message’s content is protected at rest.
Present on the wire from phase 1 so the E2EE rollout (phase 2)
changes nothing in the envelope: server rows hold content
encrypted with the file-mounted server key; e2ee rows hold
ciphertext only the participants can open.
Variants§
E2ee
End-to-end encrypted; the server stores ciphertext it cannot open.
Server
Encrypted at rest with the server key; readable at moderation review.
Trait Implementations§
Source§impl Clone for MessageEncryption
impl Clone for MessageEncryption
Source§fn clone(&self) -> MessageEncryption
fn clone(&self) -> MessageEncryption
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 moreimpl Copy for MessageEncryption
Source§impl Debug for MessageEncryption
impl Debug for MessageEncryption
Source§impl<'de> Deserialize<'de> for MessageEncryption
impl<'de> Deserialize<'de> for MessageEncryption
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
Source§impl Display for MessageEncryption
impl Display for MessageEncryption
impl Eq for MessageEncryption
Source§impl FromStr for MessageEncryption
impl FromStr for MessageEncryption
Source§impl PartialEq for MessageEncryption
impl PartialEq for MessageEncryption
Source§impl Serialize for MessageEncryption
impl Serialize for MessageEncryption
impl StructuralPartialEq for MessageEncryption
Auto Trait Implementations§
impl Freeze for MessageEncryption
impl RefUnwindSafe for MessageEncryption
impl Send for MessageEncryption
impl Sync for MessageEncryption
impl Unpin for MessageEncryption
impl UnsafeUnpin for MessageEncryption
impl UnwindSafe for MessageEncryption
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