pub struct Pinned {
pub url: &'static str,
pub sha256: &'static str,
pub max_bytes: u64,
}Expand description
A file fetched over HTTPS and checked against a pinned SHA-256 before use.
Fields§
§url: &'static str§sha256: &'static str§max_bytes: u64Larger downloads are refused.
Trait Implementations§
impl Copy for Pinned
impl Eq for Pinned
impl StructuralPartialEq for Pinned
Auto Trait Implementations§
impl Forget for Pinned
impl Freeze for Pinned
impl RefUnwindSafe for Pinned
impl Send for Pinned
impl Sync for Pinned
impl Unpin for Pinned
impl UnsafeUnpin for Pinned
impl UnwindSafe for Pinned
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.