pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}Expand description
A hash and format pair
Fields§
§hash: HashThe hash
format: BlobFormatThe format
Implementations§
Source§impl HashAndFormat
impl HashAndFormat
Trait Implementations§
Source§impl Clone for HashAndFormat
impl Clone for HashAndFormat
Source§fn clone(&self) -> HashAndFormat
fn clone(&self) -> HashAndFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HashAndFormat
impl Debug for HashAndFormat
Source§impl<'de> Deserialize<'de> for HashAndFormat
impl<'de> Deserialize<'de> for HashAndFormat
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for HashAndFormat
impl Display for HashAndFormat
Source§impl From<&TempTag> for HashAndFormat
impl From<&TempTag> for HashAndFormat
Source§impl From<(Hash, BlobFormat)> for HashAndFormat
impl From<(Hash, BlobFormat)> for HashAndFormat
Source§fn from((hash, format): (Hash, BlobFormat)) -> Self
fn from((hash, format): (Hash, BlobFormat)) -> Self
Converts to this type from the input type.
Source§impl From<BlobTicket> for HashAndFormat
impl From<BlobTicket> for HashAndFormat
Source§fn from(val: BlobTicket) -> Self
fn from(val: BlobTicket) -> Self
Converts to this type from the input type.
Source§impl From<Hash> for HashAndFormat
impl From<Hash> for HashAndFormat
Source§impl From<HashAndFormat> for GetRequest
impl From<HashAndFormat> for GetRequest
Source§fn from(value: HashAndFormat) -> Self
fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.
Source§impl From<TagInfo> for HashAndFormat
impl From<TagInfo> for HashAndFormat
Source§impl From<TempTag> for HashAndFormat
impl From<TempTag> for HashAndFormat
Source§impl FromStr for HashAndFormat
impl FromStr for HashAndFormat
Source§impl Hash for HashAndFormat
impl Hash for HashAndFormat
Source§impl MaxSize for HashAndFormat
impl MaxSize for HashAndFormat
Source§const POSTCARD_MAX_SIZE: usize
const POSTCARD_MAX_SIZE: usize
The maximum possible size that the serialization of this
type can have, in bytes.
Source§impl Ord for HashAndFormat
impl Ord for HashAndFormat
Source§fn cmp(&self, other: &HashAndFormat) -> Ordering
fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HashAndFormat
impl PartialEq for HashAndFormat
Source§fn eq(&self, other: &HashAndFormat) -> bool
fn eq(&self, other: &HashAndFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HashAndFormat
impl PartialOrd for HashAndFormat
Source§impl Serialize for HashAndFormat
impl Serialize for HashAndFormat
Source§impl SupportedRequest for HashAndFormat
impl SupportedRequest for HashAndFormat
fn into_request(self) -> FiniteRequest
Source§impl Value for HashAndFormat
Available on crate feature fs-store only.
impl Value for HashAndFormat
Available on crate feature
fs-store only.Source§type SelfType<'a> = HashAndFormat
type SelfType<'a> = HashAndFormat
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = [u8; 33]
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type Read more
impl Copy for HashAndFormat
impl Eq for HashAndFormat
impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
impl Freeze for HashAndFormat
impl RefUnwindSafe for HashAndFormat
impl Send for HashAndFormat
impl Sync for HashAndFormat
impl Unpin for HashAndFormat
impl UnsafeUnpin for HashAndFormat
impl UnwindSafe for HashAndFormat
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> Comparable<K> for Q
impl<Q, K> Comparable<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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.