pub enum ContentDigest {
Auto,
Recompute,
Require,
Off,
}Expand description
How to handle the Content-Digest header during signing.
Variants§
Auto
Use existing header if present, otherwise compute from body.
Recompute
Always recompute and overwrite.
Require
Require header to exist; do not compute.
Off
Disabled — error if content-digest is needed.
Trait Implementations§
Source§impl Clone for ContentDigest
impl Clone for ContentDigest
Source§fn clone(&self) -> ContentDigest
fn clone(&self) -> ContentDigest
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 ContentDigest
impl Debug for ContentDigest
Source§impl Default for ContentDigest
impl Default for ContentDigest
Source§fn default() -> ContentDigest
fn default() -> ContentDigest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ContentDigest
impl PartialEq for ContentDigest
impl Copy for ContentDigest
impl Eq for ContentDigest
impl StructuralPartialEq for ContentDigest
Auto Trait Implementations§
impl Freeze for ContentDigest
impl RefUnwindSafe for ContentDigest
impl Send for ContentDigest
impl Sync for ContentDigest
impl Unpin for ContentDigest
impl UnsafeUnpin for ContentDigest
impl UnwindSafe for ContentDigest
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