pub struct PinnedResource {
pub url: String,
pub sha256: String,
pub bytes: u64,
}Expand description
A file the manifest pins.
Fields§
§url: StringWhere it is: a path under the manifest’s own directory, or an absolute https: URL.
sha256: StringSHA-256 of its bytes, 64 lowercase hexadecimal digits.
bytes: u64Its length in bytes.
Trait Implementations§
Source§impl Clone for PinnedResource
impl Clone for PinnedResource
Source§impl Debug for PinnedResource
impl Debug for PinnedResource
impl Eq for PinnedResource
Source§impl PartialEq for PinnedResource
impl PartialEq for PinnedResource
impl StructuralPartialEq for PinnedResource
Auto Trait Implementations§
impl Forget for PinnedResource
impl Freeze for PinnedResource
impl Move for PinnedResource
impl RefUnwindSafe for PinnedResource
impl Send for PinnedResourcewhere
RawVecInner: Send,
impl Sync for PinnedResourcewhere
RawVecInner: Sync,
impl Unpin for PinnedResource
impl UnsafeUnpin for PinnedResource
impl UnwindSafe for PinnedResourcewhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more