pub struct DocumentEncryptUnmanagedResult { /* private fields */ }
Expand description
Encrypted document bytes and metadata.
Unmanaged encryption does not store document access information with the webservice,
but rather returns the access information as encrypted_deks
. Both the encrypted_data
and
encrypted_deks
must be used to decrypt the document.
Result from document_encrypt_unmanaged.
Implementations§
source§impl DocumentEncryptUnmanagedResult
impl DocumentEncryptUnmanagedResult
sourcepub fn encrypted_data(&self) -> &[u8] ⓘ
pub fn encrypted_data(&self) -> &[u8] ⓘ
Bytes of encrypted document data
sourcepub fn encrypted_deks(&self) -> &[u8] ⓘ
pub fn encrypted_deks(&self) -> &[u8] ⓘ
Bytes of EDEKs of users/groups that have been granted access to encrypted_data
sourcepub fn id(&self) -> &DocumentId
pub fn id(&self) -> &DocumentId
ID of the document
sourcepub fn grants(&self) -> &[UserOrGroup]
pub fn grants(&self) -> &[UserOrGroup]
Users and groups the document was successfully encrypted to
sourcepub fn access_errs(&self) -> &[DocAccessEditErr]
pub fn access_errs(&self) -> &[DocAccessEditErr]
Errors resulting from failure to encrypt
Trait Implementations§
source§impl Clone for DocumentEncryptUnmanagedResult
impl Clone for DocumentEncryptUnmanagedResult
source§fn clone(&self) -> DocumentEncryptUnmanagedResult
fn clone(&self) -> DocumentEncryptUnmanagedResult
Returns a copy 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 PartialEq for DocumentEncryptUnmanagedResult
impl PartialEq for DocumentEncryptUnmanagedResult
source§fn eq(&self, other: &DocumentEncryptUnmanagedResult) -> bool
fn eq(&self, other: &DocumentEncryptUnmanagedResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<DocumentEncryptUnmanagedResult> for EncryptedBlindIndexSalt
impl TryFrom<DocumentEncryptUnmanagedResult> for EncryptedBlindIndexSalt
§type Error = IronOxideErr
type Error = IronOxideErr
The type returned in the event of a conversion error.
source§fn try_from(
r: DocumentEncryptUnmanagedResult
) -> Result<EncryptedBlindIndexSalt>
fn try_from( r: DocumentEncryptUnmanagedResult ) -> Result<EncryptedBlindIndexSalt>
Performs the conversion.
impl Eq for DocumentEncryptUnmanagedResult
impl StructuralEq for DocumentEncryptUnmanagedResult
impl StructuralPartialEq for DocumentEncryptUnmanagedResult
Auto Trait Implementations§
impl RefUnwindSafe for DocumentEncryptUnmanagedResult
impl Send for DocumentEncryptUnmanagedResult
impl Sync for DocumentEncryptUnmanagedResult
impl Unpin for DocumentEncryptUnmanagedResult
impl UnwindSafe for DocumentEncryptUnmanagedResult
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more