Struct sos_sdk::commit::CommitHash
source · pub struct CommitHash(pub TreeHash);
Expand description
Hash representation that provides a hexadecimal display.
Tuple Fields§
§0: TreeHash
Trait Implementations§
source§impl AsRef<<Sha256Algorithm as Hasher>::Hash> for CommitHash
impl AsRef<<Sha256Algorithm as Hasher>::Hash> for CommitHash
source§impl Clone for CommitHash
impl Clone for CommitHash
source§fn clone(&self) -> CommitHash
fn clone(&self) -> CommitHash
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 CommitHash
impl Debug for CommitHash
source§impl Decodable for CommitHash
impl Decodable for CommitHash
source§impl Default for CommitHash
impl Default for CommitHash
source§fn default() -> CommitHash
fn default() -> CommitHash
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CommitHash
impl<'de> Deserialize<'de> for CommitHash
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 CommitHash
impl Display for CommitHash
source§impl Encodable for CommitHash
impl Encodable for CommitHash
source§fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Encode self into the binary writer.
source§impl From<&CommitHash> for [u8; 32]
impl From<&CommitHash> for [u8; 32]
source§fn from(value: &CommitHash) -> Self
fn from(value: &CommitHash) -> Self
Converts to this type from the input type.
source§impl From<CommitProof> for CommitHash
impl From<CommitProof> for CommitHash
source§fn from(value: CommitProof) -> Self
fn from(value: CommitProof) -> Self
Converts to this type from the input type.
source§impl FromStr for CommitHash
impl FromStr for CommitHash
source§impl Hash for CommitHash
impl Hash for CommitHash
source§impl PartialEq for CommitHash
impl PartialEq for CommitHash
source§fn eq(&self, other: &CommitHash) -> bool
fn eq(&self, other: &CommitHash) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CommitHash
impl Serialize for CommitHash
impl Copy for CommitHash
impl Eq for CommitHash
impl StructuralPartialEq for CommitHash
Auto Trait Implementations§
impl Freeze for CommitHash
impl RefUnwindSafe for CommitHash
impl Send for CommitHash
impl Sync for CommitHash
impl Unpin for CommitHash
impl UnwindSafe for CommitHash
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<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> 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 more