Struct taple_core::ApprovalResponse
source · pub struct ApprovalResponse {
pub appr_req_hash: DigestIdentifier,
pub approved: bool,
}
Expand description
A struct representing an approval response.
Fields§
§appr_req_hash: DigestIdentifier
The hash of the approval request being responded to.
approved: bool
Whether the approval request was approved or not.
Trait Implementations§
source§impl BorshDeserialize for ApprovalResponsewhere
DigestIdentifier: BorshDeserialize,
bool: BorshDeserialize,
impl BorshDeserialize for ApprovalResponsewhere DigestIdentifier: BorshDeserialize, bool: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§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.
§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 ApprovalResponsewhere
DigestIdentifier: BorshSerialize,
bool: BorshSerialize,
impl BorshSerialize for ApprovalResponsewhere DigestIdentifier: BorshSerialize, bool: BorshSerialize,
source§impl Clone for ApprovalResponse
impl Clone for ApprovalResponse
source§fn clone(&self) -> ApprovalResponse
fn clone(&self) -> ApprovalResponse
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 ApprovalResponse
impl Debug for ApprovalResponse
source§impl<'de> Deserialize<'de> for ApprovalResponse
impl<'de> Deserialize<'de> for ApprovalResponse
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 ApprovalResponse
impl Hash for ApprovalResponse
source§impl PartialEq<ApprovalResponse> for ApprovalResponse
impl PartialEq<ApprovalResponse> for ApprovalResponse
source§fn eq(&self, other: &ApprovalResponse) -> bool
fn eq(&self, other: &ApprovalResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ApprovalResponse> for ApprovalResponse
impl PartialOrd<ApprovalResponse> for ApprovalResponse
source§fn partial_cmp(&self, other: &ApprovalResponse) -> Option<Ordering>
fn partial_cmp(&self, other: &ApprovalResponse) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ApprovalResponse
impl Serialize for ApprovalResponse
impl Eq for ApprovalResponse
impl StructuralEq for ApprovalResponse
impl StructuralPartialEq for ApprovalResponse
Auto Trait Implementations§
impl RefUnwindSafe for ApprovalResponse
impl Send for ApprovalResponse
impl Sync for ApprovalResponse
impl Unpin for ApprovalResponse
impl UnwindSafe for ApprovalResponse
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.