pub struct StateCommitment(pub Vec<u8>);Expand description
State commitment of the contract.
Tuple Fields§
§0: Vec<u8>Trait Implementations§
Source§impl BorshDeserialize for StateCommitment
impl BorshDeserialize for StateCommitment
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for StateCommitment
impl BorshSerialize for StateCommitment
Source§impl Clone for StateCommitment
impl Clone for StateCommitment
Source§fn clone(&self) -> StateCommitment
fn clone(&self) -> StateCommitment
Returns a duplicate 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 ComposeSchema for StateCommitment
impl ComposeSchema for StateCommitment
Source§impl Debug for StateCommitment
impl Debug for StateCommitment
Source§impl Default for StateCommitment
impl Default for StateCommitment
Source§fn default() -> StateCommitment
fn default() -> StateCommitment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StateCommitment
impl<'de> Deserialize<'de> for StateCommitment
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 Hash for StateCommitment
impl Hash for StateCommitment
Source§impl PartialEq for StateCommitment
impl PartialEq for StateCommitment
Source§impl Serialize for StateCommitment
impl Serialize for StateCommitment
Source§impl ToSchema for StateCommitment
impl ToSchema for StateCommitment
impl Eq for StateCommitment
impl StructuralPartialEq for StateCommitment
Auto Trait Implementations§
impl Freeze for StateCommitment
impl RefUnwindSafe for StateCommitment
impl Send for StateCommitment
impl Sync for StateCommitment
impl Unpin for StateCommitment
impl UnsafeUnpin for StateCommitment
impl UnwindSafe for StateCommitment
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> 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.