pub struct AmountAndChainDescriptor {
pub chain_descriptor: String,
pub amount: String,
}
Fields§
§chain_descriptor: String
The protocol identifier (e.g. "ETH"/"SOL") for summary
amount: String
Cryptocurrency quantity
Implementations§
Source§impl AmountAndChainDescriptor
impl AmountAndChainDescriptor
pub fn new(chain_descriptor: String, amount: String) -> AmountAndChainDescriptor
Trait Implementations§
Source§impl Clone for AmountAndChainDescriptor
impl Clone for AmountAndChainDescriptor
Source§fn clone(&self) -> AmountAndChainDescriptor
fn clone(&self) -> AmountAndChainDescriptor
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 AmountAndChainDescriptor
impl Debug for AmountAndChainDescriptor
Source§impl Default for AmountAndChainDescriptor
impl Default for AmountAndChainDescriptor
Source§fn default() -> AmountAndChainDescriptor
fn default() -> AmountAndChainDescriptor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AmountAndChainDescriptor
impl<'de> Deserialize<'de> for AmountAndChainDescriptor
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 AmountAndChainDescriptor
impl PartialEq for AmountAndChainDescriptor
Source§impl Serialize for AmountAndChainDescriptor
impl Serialize for AmountAndChainDescriptor
impl StructuralPartialEq for AmountAndChainDescriptor
Auto Trait Implementations§
impl Freeze for AmountAndChainDescriptor
impl RefUnwindSafe for AmountAndChainDescriptor
impl Send for AmountAndChainDescriptor
impl Sync for AmountAndChainDescriptor
impl Unpin for AmountAndChainDescriptor
impl UnwindSafe for AmountAndChainDescriptor
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