#[non_exhaustive]pub struct Encryption {
pub state: EncryptionState,
pub key_id: Option<String>,
pub header: Option<Box<RawValue>>,
pub rewrite: Option<RewriteSession>,
}Expand description
A workspace’s encryption, as the server says it is.
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.state: EncryptionStatePlaintext, sealed, or being rewritten.
key_id: Option<String>The key id readers need; while a rewrite is open, the one before it.
header: Option<Box<RawValue>>The store header, as the client wrote it.
rewrite: Option<RewriteSession>The rewrite session, when one is open.
Trait Implementations§
Source§impl Clone for Encryption
impl Clone for Encryption
Source§impl Debug for Encryption
impl Debug for Encryption
Source§impl<'de> Deserialize<'de> for Encryption
impl<'de> Deserialize<'de> for Encryption
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 Encryption
impl RefUnwindSafe for Encryption
impl Send for Encryption
impl Sync for Encryption
impl Unpin for Encryption
impl UnsafeUnpin for Encryption
impl UnwindSafe for Encryption
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