Enum taple_core::ApprovalState
source · pub enum ApprovalState {
Pending,
RespondedAccepted,
RespondedRejected,
Obsolete,
}
Expand description
An enum representing the state of an approval entity.
Variants§
Pending
The approval entity is pending a response.
RespondedAccepted
Request for approval which is in responded status and accepted
RespondedRejected
Request for approval which is in responded status and rejected
Obsolete
The approval entity is obsolete.
Trait Implementations§
source§impl BorshDeserialize for ApprovalState
impl BorshDeserialize for ApprovalState
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 ApprovalState
impl BorshSerialize for ApprovalState
source§impl Clone for ApprovalState
impl Clone for ApprovalState
source§fn clone(&self) -> ApprovalState
fn clone(&self) -> ApprovalState
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 ApprovalState
impl Debug for ApprovalState
source§impl<'de> Deserialize<'de> for ApprovalState
impl<'de> Deserialize<'de> for ApprovalState
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 EnumExt for ApprovalState
impl EnumExt for ApprovalState
source§impl PartialEq<ApprovalState> for ApprovalState
impl PartialEq<ApprovalState> for ApprovalState
source§fn eq(&self, other: &ApprovalState) -> bool
fn eq(&self, other: &ApprovalState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ApprovalState
impl Serialize for ApprovalState
impl Eq for ApprovalState
impl StructuralEq for ApprovalState
impl StructuralPartialEq for ApprovalState
Auto Trait Implementations§
impl RefUnwindSafe for ApprovalState
impl Send for ApprovalState
impl Sync for ApprovalState
impl Unpin for ApprovalState
impl UnwindSafe for ApprovalState
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.