pub struct Integrities { /* private fields */ }Implementations§
Source§impl Integrities
impl Integrities
Sourcepub fn set_main(&mut self, hash: impl Into<String>)
pub fn set_main(&mut self, hash: impl Into<String>)
Set the SHA-384 SRI hash for the main (entrypoint) script.
Sourcepub fn set_wrapper(&mut self, hash: impl Into<String>)
pub fn set_wrapper(&mut self, hash: impl Into<String>)
Set the SHA-384 SRI hash for the Emscripten wrapper script.
Sourcepub fn set_binary(&mut self, hash: impl Into<String>)
pub fn set_binary(&mut self, hash: impl Into<String>)
Set the SHA-384 SRI hash for the WASM binary.
Trait Implementations§
Source§impl Clone for Integrities
impl Clone for Integrities
Source§fn clone(&self) -> Integrities
fn clone(&self) -> Integrities
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 Integrities
impl Debug for Integrities
Source§impl Default for Integrities
impl Default for Integrities
Source§fn default() -> Integrities
fn default() -> Integrities
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Integrities
impl RefUnwindSafe for Integrities
impl Send for Integrities
impl Sync for Integrities
impl Unpin for Integrities
impl UnwindSafe for Integrities
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