pub struct OutputCoin {
pub to: String,
pub coin: CoinBalance,
}
Expand description
Represents a coin output in an intention.
Fields§
§to: String
The address of the receiver of the coins
coin: CoinBalance
Trait Implementations§
Source§impl CandidType for OutputCoin
impl CandidType for OutputCoin
Source§impl Clone for OutputCoin
impl Clone for OutputCoin
Source§fn clone(&self) -> OutputCoin
fn clone(&self) -> OutputCoin
Returns a duplicate 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 OutputCoin
impl Debug for OutputCoin
Source§impl<'de> Deserialize<'de> for OutputCoin
impl<'de> Deserialize<'de> for OutputCoin
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 Ord for OutputCoin
impl Ord for OutputCoin
Source§fn cmp(&self, other: &OutputCoin) -> Ordering
fn cmp(&self, other: &OutputCoin) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OutputCoin
impl PartialEq for OutputCoin
Source§impl PartialOrd for OutputCoin
impl PartialOrd for OutputCoin
Source§impl Serialize for OutputCoin
impl Serialize for OutputCoin
impl Eq for OutputCoin
impl StructuralPartialEq for OutputCoin
Auto Trait Implementations§
impl Freeze for OutputCoin
impl RefUnwindSafe for OutputCoin
impl Send for OutputCoin
impl Sync for OutputCoin
impl Unpin for OutputCoin
impl UnwindSafe for OutputCoin
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