pub struct DepositAddress {
pub info: Option<Value>,
pub currency: String,
pub network: Option<String>,
pub address: String,
pub tag: Option<String>,
}Expand description
Deposit address information for receiving funds.
Fields§
§info: Option<Value>Raw exchange response data.
currency: StringCurrency code.
network: Option<String>Network or chain name (e.g., ERC20, TRC20).
address: StringDeposit address.
tag: Option<String>Address memo or tag (required for some currencies).
Implementations§
Source§impl DepositAddress
impl DepositAddress
Sourcepub fn new(currency: String, address: String) -> DepositAddress
pub fn new(currency: String, address: String) -> DepositAddress
Creates a new deposit address.
Sourcepub fn full_address(&self) -> String
pub fn full_address(&self) -> String
Returns the full address string including tag if present.
Trait Implementations§
Source§impl Clone for DepositAddress
impl Clone for DepositAddress
Source§fn clone(&self) -> DepositAddress
fn clone(&self) -> DepositAddress
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 DepositAddress
impl Debug for DepositAddress
Source§impl<'de> Deserialize<'de> for DepositAddress
impl<'de> Deserialize<'de> for DepositAddress
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DepositAddress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DepositAddress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DepositAddress
impl Serialize for DepositAddress
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for DepositAddress
impl RefUnwindSafe for DepositAddress
impl Send for DepositAddress
impl Sync for DepositAddress
impl Unpin for DepositAddress
impl UnwindSafe for DepositAddress
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