Struct content_security_policy::HashFunction
source · pub struct HashFunction {
pub(crate) algorithm: HashAlgorithm,
pub(crate) value: String,
}
Expand description
https://www.w3.org/TR/SRI/#integrity-metadata
Fields§
§algorithm: HashAlgorithm
§value: String
Trait Implementations§
source§impl Clone for HashFunction
impl Clone for HashFunction
source§fn clone(&self) -> HashFunction
fn clone(&self) -> HashFunction
Returns a copy 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 HashFunction
impl Debug for HashFunction
source§impl PartialEq for HashFunction
impl PartialEq for HashFunction
source§fn eq(&self, other: &HashFunction) -> bool
fn eq(&self, other: &HashFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HashFunction
impl StructuralPartialEq for HashFunction
Auto Trait Implementations§
impl Freeze for HashFunction
impl RefUnwindSafe for HashFunction
impl Send for HashFunction
impl Sync for HashFunction
impl Unpin for HashFunction
impl UnwindSafe for HashFunction
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