pub enum TransactionPostCondition {
STX(PostConditionPrincipal, FungibleConditionCode, u64),
Fungible(PostConditionPrincipal, AssetInfo, FungibleConditionCode, u64),
Nonfungible(PostConditionPrincipal, AssetInfo, Value, NonfungibleConditionCode),
}Expand description
Post-condition on a transaction
Variants§
STX(PostConditionPrincipal, FungibleConditionCode, u64)
Fungible(PostConditionPrincipal, AssetInfo, FungibleConditionCode, u64)
Nonfungible(PostConditionPrincipal, AssetInfo, Value, NonfungibleConditionCode)
Trait Implementations§
source§impl Clone for TransactionPostCondition
impl Clone for TransactionPostCondition
source§fn clone(&self) -> TransactionPostCondition
fn clone(&self) -> TransactionPostCondition
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 TransactionPostCondition
impl Debug for TransactionPostCondition
source§impl<'de> Deserialize<'de> for TransactionPostCondition
impl<'de> Deserialize<'de> for TransactionPostCondition
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 for TransactionPostCondition
impl PartialEq for TransactionPostCondition
source§fn eq(&self, other: &TransactionPostCondition) -> bool
fn eq(&self, other: &TransactionPostCondition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for TransactionPostCondition
impl Serialize for TransactionPostCondition
source§impl StacksMessageCodec for TransactionPostCondition
impl StacksMessageCodec for TransactionPostCondition
source§fn consensus_serialize<W: Write>(&self, fd: &mut W) -> Result<(), CodecError>
fn consensus_serialize<W: Write>(&self, fd: &mut W) -> Result<(), CodecError>
serialize implementors should never error unless there is an underlying
failure in writing to the
fdfn consensus_deserialize<R: Read>( fd: &mut R ) -> Result<TransactionPostCondition, CodecError>
impl StructuralPartialEq for TransactionPostCondition
Auto Trait Implementations§
impl RefUnwindSafe for TransactionPostCondition
impl Send for TransactionPostCondition
impl Sync for TransactionPostCondition
impl Unpin for TransactionPostCondition
impl UnwindSafe for TransactionPostCondition
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