pub struct BodyEnvelopeLimits {
pub max_header_bytes: usize,
pub max_recipients: usize,
pub max_key_id_len: usize,
pub max_wrapped_key_len: usize,
pub max_payload_len: usize,
}Expand description
Parser and encoder hardening limits for body envelopes.
Fields§
§max_header_bytes: usizeMaximum parsed header length in bytes.
max_recipients: usizeMaximum number of recipient entries allowed in one envelope.
max_key_id_len: usizeMaximum recipient key identifier length in bytes.
max_wrapped_key_len: usizeMaximum wrapped content-key length in bytes.
max_payload_len: usizeMaximum payload ciphertext length in bytes.
Trait Implementations§
Source§impl Clone for BodyEnvelopeLimits
impl Clone for BodyEnvelopeLimits
Source§fn clone(&self) -> BodyEnvelopeLimits
fn clone(&self) -> BodyEnvelopeLimits
Returns a duplicate 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 Debug for BodyEnvelopeLimits
impl Debug for BodyEnvelopeLimits
Source§impl Default for BodyEnvelopeLimits
impl Default for BodyEnvelopeLimits
Source§impl PartialEq for BodyEnvelopeLimits
impl PartialEq for BodyEnvelopeLimits
impl Eq for BodyEnvelopeLimits
impl StructuralPartialEq for BodyEnvelopeLimits
Auto Trait Implementations§
impl Freeze for BodyEnvelopeLimits
impl RefUnwindSafe for BodyEnvelopeLimits
impl Send for BodyEnvelopeLimits
impl Sync for BodyEnvelopeLimits
impl Unpin for BodyEnvelopeLimits
impl UnsafeUnpin for BodyEnvelopeLimits
impl UnwindSafe for BodyEnvelopeLimits
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