pub struct DigestOptions {
pub content: bool,
pub representation: bool,
pub want_content: Option<DigestPreference>,
pub want_representation: Option<DigestPreference>,
}Expand description
RFC 9530 output fields for a complete, buffered representation.
The default sends only a SHA-256 Content-Digest. Preferences are advisory
and do not activate verification. Representation digests must describe the
complete selected representation, which is the body for ordinary JSON POSTs.
Fields§
§content: boolSend Content-Digest (default true).
representation: boolSend Repr-Digest (default false).
want_content: Option<DigestPreference>Optional Want-Content-Digest weight.
want_representation: Option<DigestPreference>Optional Want-Repr-Digest weight.
Implementations§
Trait Implementations§
Source§impl Clone for DigestOptions
impl Clone for DigestOptions
impl Copy for DigestOptions
Source§impl Debug for DigestOptions
impl Debug for DigestOptions
Source§impl Default for DigestOptions
impl Default for DigestOptions
impl Eq for DigestOptions
Source§impl PartialEq for DigestOptions
impl PartialEq for DigestOptions
impl StructuralPartialEq for DigestOptions
Auto Trait Implementations§
impl Freeze for DigestOptions
impl RefUnwindSafe for DigestOptions
impl Send for DigestOptions
impl Sync for DigestOptions
impl Unpin for DigestOptions
impl UnsafeUnpin for DigestOptions
impl UnwindSafe for DigestOptions
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.