pub struct StxTransferSpecification {
pub expected_sender: StandardPrincipalData,
pub recipient: PrincipalData,
pub mstx_amount: u64,
pub memo: [u8; 34],
pub cost: u64,
pub anchor_block_only: bool,
}Fields§
§expected_sender: StandardPrincipalData§recipient: PrincipalData§mstx_amount: u64§memo: [u8; 34]§cost: u64§anchor_block_only: boolImplementations§
source§impl StxTransferSpecification
impl StxTransferSpecification
pub fn from_specifications( specs: &StxTransferSpecificationFile ) -> Result<StxTransferSpecification, String>
Trait Implementations§
source§impl Clone for StxTransferSpecification
impl Clone for StxTransferSpecification
source§fn clone(&self) -> StxTransferSpecification
fn clone(&self) -> StxTransferSpecification
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 StxTransferSpecification
impl Debug for StxTransferSpecification
source§impl<'de> Deserialize<'de> for StxTransferSpecification
impl<'de> Deserialize<'de> for StxTransferSpecification
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<StxTransferSpecification> for StxTransferSpecification
impl PartialEq<StxTransferSpecification> for StxTransferSpecification
source§fn eq(&self, other: &StxTransferSpecification) -> bool
fn eq(&self, other: &StxTransferSpecification) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for StxTransferSpecification
impl Serialize for StxTransferSpecification
impl StructuralPartialEq for StxTransferSpecification
Auto Trait Implementations§
impl RefUnwindSafe for StxTransferSpecification
impl Send for StxTransferSpecification
impl Sync for StxTransferSpecification
impl Unpin for StxTransferSpecification
impl UnwindSafe for StxTransferSpecification
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