pub struct SealedStoragePolicy {
pub application_id: ApplicationId,
pub tenant_id: Option<TenantId>,
pub content_type: ContentType,
pub schema_version: u32,
pub key_id: KeyId,
pub max_payload_bytes: u64,
pub public_metadata: Vec<u8>,
}Expand description
Storage policy used when sealing objects into DNT envelopes.
Fields§
§application_id: ApplicationIdApplication that owns the object.
tenant_id: Option<TenantId>Optional tenant boundary.
content_type: ContentTypeLogical DNT content type.
schema_version: u32Payload schema version.
key_id: KeyIdKey used for new writes.
max_payload_bytes: u64Maximum encoded payload size.
public_metadata: Vec<u8>Authenticated public metadata.
Implementations§
Source§impl SealedStoragePolicy
impl SealedStoragePolicy
Sourcepub fn open_options(&self) -> DntOpenOptions
pub fn open_options(&self) -> DntOpenOptions
Creates DNT open options from this policy.
Trait Implementations§
Source§impl Clone for SealedStoragePolicy
impl Clone for SealedStoragePolicy
Source§fn clone(&self) -> SealedStoragePolicy
fn clone(&self) -> SealedStoragePolicy
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 moreSource§impl Debug for SealedStoragePolicy
impl Debug for SealedStoragePolicy
impl Eq for SealedStoragePolicy
Source§impl PartialEq for SealedStoragePolicy
impl PartialEq for SealedStoragePolicy
impl StructuralPartialEq for SealedStoragePolicy
Auto Trait Implementations§
impl Freeze for SealedStoragePolicy
impl RefUnwindSafe for SealedStoragePolicy
impl Send for SealedStoragePolicy
impl Sync for SealedStoragePolicy
impl Unpin for SealedStoragePolicy
impl UnsafeUnpin for SealedStoragePolicy
impl UnwindSafe for SealedStoragePolicy
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