pub struct SourceTransferPeerPathResponse {
pub type: TransferPeerPathType,
pub sub_type: Option<String>,
pub id: Option<Option<String>>,
pub name: Option<String>,
pub wallet_id: Option<Uuid>,
pub trading_account: Option<Option<String>>,
}
Expand description
SourceTransferPeerPathResponse : Source of the transaction.
Fields§
§type: TransferPeerPathType
§sub_type: Option<String>
In case the type is set to EXCHANGE_ACCOUNT
or FIAT_ACCOUNT
, the
specific exchange vendor name or fiat vendor name. In case the type is
set to INTERNAL_WALLET
or EXTERNAL_WALLET
, the subType is set to
Internal
or External
.
id: Option<Option<String>>
The ID of the peer. You can retrieve the ID of each venue object using the endpoints for listing vault accounts, listing exchange account, listing fiat accounts, listing internal wallets, listing external wallets, listing network connections. For the other types, this parameter is not needed.
name: Option<String>
The name of the peer
wallet_id: Option<Uuid>
§trading_account: Option<Option<String>>
If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account.
Implementations§
Source§impl SourceTransferPeerPathResponse
impl SourceTransferPeerPathResponse
Sourcepub fn new(type: TransferPeerPathType) -> SourceTransferPeerPathResponse
pub fn new(type: TransferPeerPathType) -> SourceTransferPeerPathResponse
Source of the transaction.
Trait Implementations§
Source§impl Clone for SourceTransferPeerPathResponse
impl Clone for SourceTransferPeerPathResponse
Source§fn clone(&self) -> SourceTransferPeerPathResponse
fn clone(&self) -> SourceTransferPeerPathResponse
Returns a copy 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 Default for SourceTransferPeerPathResponse
impl Default for SourceTransferPeerPathResponse
Source§fn default() -> SourceTransferPeerPathResponse
fn default() -> SourceTransferPeerPathResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SourceTransferPeerPathResponse
impl<'de> Deserialize<'de> for SourceTransferPeerPathResponse
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 SourceTransferPeerPathResponse
impl PartialEq for SourceTransferPeerPathResponse
Source§fn eq(&self, other: &SourceTransferPeerPathResponse) -> bool
fn eq(&self, other: &SourceTransferPeerPathResponse) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SourceTransferPeerPathResponse
Auto Trait Implementations§
impl Freeze for SourceTransferPeerPathResponse
impl RefUnwindSafe for SourceTransferPeerPathResponse
impl Send for SourceTransferPeerPathResponse
impl Sync for SourceTransferPeerPathResponse
impl Unpin for SourceTransferPeerPathResponse
impl UnwindSafe for SourceTransferPeerPathResponse
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