pub struct DntOpenOptions {
pub application_id: ApplicationId,
pub tenant_id: Option<TenantId>,
pub content_type: ContentType,
pub max_payload_bytes: Option<u64>,
}Expand description
Options used when opening or verifying an envelope.
Fields§
§application_id: ApplicationIdRequired application identity.
tenant_id: Option<TenantId>Required tenant identity. None accepts only tenantless envelopes.
content_type: ContentTypeRequired logical content type.
max_payload_bytes: Option<u64>Optional maximum encoded payload size.
Implementations§
Source§impl DntOpenOptions
impl DntOpenOptions
Sourcepub fn max_envelope_bytes(&self) -> DntResult<u64>
pub fn max_envelope_bytes(&self) -> DntResult<u64>
Returns the largest complete file buffer allowed by these options.
File-based readers require an explicit payload bound so they can reject an oversized envelope before allocating its complete contents.
Trait Implementations§
Source§impl Clone for DntOpenOptions
impl Clone for DntOpenOptions
Source§fn clone(&self) -> DntOpenOptions
fn clone(&self) -> DntOpenOptions
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 DntOpenOptions
impl Debug for DntOpenOptions
impl Eq for DntOpenOptions
Source§impl PartialEq for DntOpenOptions
impl PartialEq for DntOpenOptions
impl StructuralPartialEq for DntOpenOptions
Auto Trait Implementations§
impl Freeze for DntOpenOptions
impl RefUnwindSafe for DntOpenOptions
impl Send for DntOpenOptions
impl Sync for DntOpenOptions
impl Unpin for DntOpenOptions
impl UnsafeUnpin for DntOpenOptions
impl UnwindSafe for DntOpenOptions
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