pub struct ServiceDigest(/* private fields */);Expand description
It is a string, but hex-encoded 32-byte hash
Implementations§
Trait Implementations§
Source§impl AsRef<[u8]> for ServiceDigest
impl AsRef<[u8]> for ServiceDigest
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for ServiceDigest
impl<'__de, __Context> BorrowDecode<'__de, __Context> for ServiceDigest
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for ServiceDigest
impl Clone for ServiceDigest
Source§fn clone(&self) -> ServiceDigest
fn clone(&self) -> ServiceDigest
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 ComposeSchema for ServiceDigest
impl ComposeSchema for ServiceDigest
Source§impl Debug for ServiceDigest
impl Debug for ServiceDigest
Source§impl<__Context> Decode<__Context> for ServiceDigest
impl<__Context> Decode<__Context> for ServiceDigest
Source§impl<'de> Deserialize<'de> for ServiceDigest
impl<'de> Deserialize<'de> for ServiceDigest
Source§fn deserialize<D>(deserializer: D) -> Result<ServiceDigest, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ServiceDigest, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ServiceDigest
impl Display for ServiceDigest
Source§impl Encode for ServiceDigest
impl Encode for ServiceDigest
impl Eq for ServiceDigest
Source§impl From<ServiceDigest> for AnyDigest
impl From<ServiceDigest> for AnyDigest
Source§fn from(digest: ServiceDigest) -> Self
fn from(digest: ServiceDigest) -> Self
Converts to this type from the input type.
Source§impl FromStr for ServiceDigest
impl FromStr for ServiceDigest
Source§impl Hash for ServiceDigest
impl Hash for ServiceDigest
Source§impl Ord for ServiceDigest
impl Ord for ServiceDigest
Source§fn cmp(&self, other: &ServiceDigest) -> Ordering
fn cmp(&self, other: &ServiceDigest) -> 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 ServiceDigest
impl PartialEq for ServiceDigest
Source§fn eq(&self, other: &ServiceDigest) -> bool
fn eq(&self, other: &ServiceDigest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ServiceDigest
impl PartialOrd for ServiceDigest
Source§impl Serialize for ServiceDigest
impl Serialize for ServiceDigest
impl StructuralPartialEq for ServiceDigest
Auto Trait Implementations§
impl Freeze for ServiceDigest
impl RefUnwindSafe for ServiceDigest
impl Send for ServiceDigest
impl Sync for ServiceDigest
impl Unpin for ServiceDigest
impl UnsafeUnpin for ServiceDigest
impl UnwindSafe for ServiceDigest
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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<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§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> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
👎Deprecated:
use ToHexExt instead
Encode the hex strict representing
self into the result.
Lower case letters are used (e.g. f9b4ca).Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
👎Deprecated:
use ToHexExt instead
Encode the hex strict representing
self into the result.
Upper case letters are used (e.g. F9B4CA).Source§impl<T> ToHexExt for T
impl<T> ToHexExt for T
Source§fn encode_hex(&self) -> String
fn encode_hex(&self) -> String
Encode the hex strict representing
self into the result.
Lower case letters are used (e.g. f9b4ca).Source§fn encode_hex_upper(&self) -> String
fn encode_hex_upper(&self) -> String
Encode the hex strict representing
self into the result.
Upper case letters are used (e.g. F9B4CA).Source§fn encode_hex_with_prefix(&self) -> String
fn encode_hex_with_prefix(&self) -> String
Encode the hex strict representing
self into the result with prefix 0x.
Lower case letters are used (e.g. 0xf9b4ca).Source§fn encode_hex_upper_with_prefix(&self) -> String
fn encode_hex_upper_with_prefix(&self) -> String
Encode the hex strict representing
self into the result with prefix 0X.
Upper case letters are used (e.g. 0xF9B4CA).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.