pub struct HttpSealOptions { /* private fields */ }Expand description
High-level options used to construct an crate::HttpSealer.
Implementations§
Source§impl HttpSealOptions
impl HttpSealOptions
Sourcepub fn new(
recipient_public_key: [u8; 32],
recipient_key_id: impl AsRef<[u8]>,
) -> Self
pub fn new( recipient_public_key: [u8; 32], recipient_key_id: impl AsRef<[u8]>, ) -> Self
Creates sealing options for a recipient public key and key identifier.
Sourcepub fn with_limits(self, limits: BodyEnvelopeLimits) -> Self
pub fn with_limits(self, limits: BodyEnvelopeLimits) -> Self
Applies explicit body envelope limits.
Sourcepub fn recipient_public_key(&self) -> [u8; 32]
pub fn recipient_public_key(&self) -> [u8; 32]
Returns the recipient public key.
Sourcepub fn recipient_key_id(&self) -> &[u8] ⓘ
pub fn recipient_key_id(&self) -> &[u8] ⓘ
Returns the recipient key identifier.
Sourcepub fn limits(&self) -> Option<&BodyEnvelopeLimits>
pub fn limits(&self) -> Option<&BodyEnvelopeLimits>
Returns explicit sealing limits, if configured.
Trait Implementations§
Source§impl Clone for HttpSealOptions
impl Clone for HttpSealOptions
Source§fn clone(&self) -> HttpSealOptions
fn clone(&self) -> HttpSealOptions
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 HttpSealOptions
impl Debug for HttpSealOptions
Source§impl PartialEq for HttpSealOptions
impl PartialEq for HttpSealOptions
impl Eq for HttpSealOptions
impl StructuralPartialEq for HttpSealOptions
Auto Trait Implementations§
impl Freeze for HttpSealOptions
impl RefUnwindSafe for HttpSealOptions
impl Send for HttpSealOptions
impl Sync for HttpSealOptions
impl Unpin for HttpSealOptions
impl UnsafeUnpin for HttpSealOptions
impl UnwindSafe for HttpSealOptions
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