pub struct AddToAddressBookRequest {
pub currency: String,
pub address_type: AddressBookType,
pub address: String,
pub label: Option<String>,
pub tag: Option<String>,
}Expand description
Request parameters for adding an address to the address book.
Used with the /private/add_to_address_book endpoint.
Fields§
§currency: StringCurrency symbol (e.g., “BTC”, “ETH”, “USDC”)
address_type: AddressBookTypeAddress book entry type
address: StringAddress in proper format for the currency
label: Option<String>User-defined label for the address
tag: Option<String>Tag for XRP addresses (destination tag)
Implementations§
Source§impl AddToAddressBookRequest
impl AddToAddressBookRequest
Sourcepub fn new(
currency: String,
address_type: AddressBookType,
address: String,
) -> Self
pub fn new( currency: String, address_type: AddressBookType, address: String, ) -> Self
Creates a new request to add an address to the address book.
Sourcepub fn with_label(self, label: String) -> Self
pub fn with_label(self, label: String) -> Self
Sets the label for the address book entry.
Trait Implementations§
Source§impl Clone for AddToAddressBookRequest
impl Clone for AddToAddressBookRequest
Source§fn clone(&self) -> AddToAddressBookRequest
fn clone(&self) -> AddToAddressBookRequest
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 AddToAddressBookRequest
impl Debug for AddToAddressBookRequest
Source§impl<'de> Deserialize<'de> for AddToAddressBookRequest
impl<'de> Deserialize<'de> for AddToAddressBookRequest
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
Auto Trait Implementations§
impl Freeze for AddToAddressBookRequest
impl RefUnwindSafe for AddToAddressBookRequest
impl Send for AddToAddressBookRequest
impl Sync for AddToAddressBookRequest
impl Unpin for AddToAddressBookRequest
impl UnsafeUnpin for AddToAddressBookRequest
impl UnwindSafe for AddToAddressBookRequest
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