Struct shuttle_core::CreditAsset
[−]
[src]
pub struct CreditAsset { /* fields omitted */ }A non-native asset, identified by asset code/issuer id.
Methods
impl CreditAsset[src]
fn new(code: String, issuer: PublicKey) -> Result<CreditAsset>[src]
Create new credit asset with code and `issuer.
Code must be shorter than 12 characters.
fn code(&self) -> &str[src]
Return the asset code.
fn issuer(&self) -> &PublicKey[src]
Return the asset issuer.
Trait Implementations
impl Debug for CreditAsset[src]
impl Clone for CreditAsset[src]
fn clone(&self) -> CreditAsset[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for CreditAsset[src]
fn eq(&self, __arg_0: &CreditAsset) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &CreditAsset) -> bool[src]
This method tests for !=.