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 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 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 = 33usize
 
const POSTCARD_MAX_SIZE: usize = 33usize
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 · 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§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
 
impl Value for HashAndFormat
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
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 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,
§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
§impl<T> CompatExt for T
 
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
 
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
    T: ?Sized,
 
impl<T> PolicyExt for Twhere
    T: ?Sized,
§impl<T> ToStringFallible for Twhere
    T: Display,
 
impl<T> ToStringFallible for Twhere
    T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
 
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.