pub struct HistoryTransactions {
pub transations: Vec<HistoryTransaction>,
}
Fields§
§transations: Vec<HistoryTransaction>
Implementations§
Source§impl HistoryTransactions
impl HistoryTransactions
Sourcepub fn buys<C>(client: &C) -> C::Resultwhere
C: ClientExecutor<Self>,
pub fn buys<C>(client: &C) -> C::Resultwhere
C: ClientExecutor<Self>,
Returns all buy transactions that were fulfilled in the past 90 days for the currently authenticated account.
§Authentication
This endpoint requires authentication and returns an Error
if no access token is set.
When authenticated it returns the fulfilled buy transactions for the account of the
current access token.
§Examples
let client: Client = Client::builder().access_token(token).into();
let transactions = HistoryTransactions::buys(&client).await?;
println!("{:?}", transactions);
let client: Client = Client::builder().access_token(token).into();
let transactions = HistoryTransactions::buys(&client)?;
println!("{:?}", transactions);
Sourcepub fn sells<C>(client: &C) -> C::Resultwhere
C: ClientExecutor<Self>,
pub fn sells<C>(client: &C) -> C::Resultwhere
C: ClientExecutor<Self>,
Returns all sell transactions that were fulfilled in the past 90 days for the currently authenticated account.
§Authentication
This endpoint requires authentication and returns an Error
if no access token is set.
When authenticated it returns the fulfilled sell transactions for the account of the
current access token.
§Examples
let client: Client = Client::builder().access_token(token).into();
let transactions = HistoryTransactions::sells(&client).await?;
println!("{:?}", transactions);
let client: Client = Client::builder().access_token(token).into();
let transactions = HistoryTransactions::sells(&client)?;
println!("{:?}", transactions);
Trait Implementations§
Source§impl Clone for HistoryTransactions
impl Clone for HistoryTransactions
Source§fn clone(&self) -> HistoryTransactions
fn clone(&self) -> HistoryTransactions
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 HistoryTransactions
impl Debug for HistoryTransactions
Source§impl<'de> Deserialize<'de> for HistoryTransactions
impl<'de> Deserialize<'de> for HistoryTransactions
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 HistoryTransactions
impl RefUnwindSafe for HistoryTransactions
impl Send for HistoryTransactions
impl Sync for HistoryTransactions
impl Unpin for HistoryTransactions
impl UnwindSafe for HistoryTransactions
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