Struct taple_core::ApprovalEntity
source · pub struct ApprovalEntity {
pub id: DigestIdentifier,
pub request: Signed<ApprovalRequest>,
pub response: Option<Signed<ApprovalResponse>>,
pub state: ApprovalState,
pub sender: KeyIdentifier,
}
Expand description
A struct representing an approval entity.
Fields§
§id: DigestIdentifier
The identifier of the approval entity.
request: Signed<ApprovalRequest>
The signed approval request.
response: Option<Signed<ApprovalResponse>>
The signed approval response, if one has been received.
state: ApprovalState
The state of the approval entity.
sender: KeyIdentifier
The state of the approval entity.
Trait Implementations§
source§impl BorshDeserialize for ApprovalEntitywhere
DigestIdentifier: BorshDeserialize,
Signed<ApprovalRequest>: BorshDeserialize,
Option<Signed<ApprovalResponse>>: BorshDeserialize,
ApprovalState: BorshDeserialize,
KeyIdentifier: BorshDeserialize,
impl BorshDeserialize for ApprovalEntitywhere DigestIdentifier: BorshDeserialize, Signed<ApprovalRequest>: BorshDeserialize, Option<Signed<ApprovalResponse>>: BorshDeserialize, ApprovalState: BorshDeserialize, KeyIdentifier: 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 ApprovalEntitywhere
DigestIdentifier: BorshSerialize,
Signed<ApprovalRequest>: BorshSerialize,
Option<Signed<ApprovalResponse>>: BorshSerialize,
ApprovalState: BorshSerialize,
KeyIdentifier: BorshSerialize,
impl BorshSerialize for ApprovalEntitywhere DigestIdentifier: BorshSerialize, Signed<ApprovalRequest>: BorshSerialize, Option<Signed<ApprovalResponse>>: BorshSerialize, ApprovalState: BorshSerialize, KeyIdentifier: BorshSerialize,
source§impl Clone for ApprovalEntity
impl Clone for ApprovalEntity
source§fn clone(&self) -> ApprovalEntity
fn clone(&self) -> ApprovalEntity
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 ApprovalEntity
impl Debug for ApprovalEntity
source§impl<'de> Deserialize<'de> for ApprovalEntity
impl<'de> Deserialize<'de> for ApprovalEntity
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 PartialEq<ApprovalEntity> for ApprovalEntity
impl PartialEq<ApprovalEntity> for ApprovalEntity
source§fn eq(&self, other: &ApprovalEntity) -> bool
fn eq(&self, other: &ApprovalEntity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ApprovalEntity
impl Serialize for ApprovalEntity
impl Eq for ApprovalEntity
impl StructuralEq for ApprovalEntity
impl StructuralPartialEq for ApprovalEntity
Auto Trait Implementations§
impl RefUnwindSafe for ApprovalEntity
impl Send for ApprovalEntity
impl Sync for ApprovalEntity
impl Unpin for ApprovalEntity
impl UnwindSafe for ApprovalEntity
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.