pub struct CurrentTransactions {
pub transactions: Vec<CurrentTransaction>,
}
Fields§
§transactions: Vec<CurrentTransaction>
Implementations§
Source§impl CurrentTransactions
impl CurrentTransactions
Sourcepub fn buys<C>(client: &C) -> C::Resultwhere
C: ClientExecutor<Self>,
pub fn buys<C>(client: &C) -> C::Resultwhere
C: ClientExecutor<Self>,
Returns all outstanding buy transactions 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 outstanding buy transactions for the account of the
current access token.
§Examples
let client: Client = Client::builder().access_token(token).into();
let transactions = CurrentTransactions::buys(&client).await?;
println!("{:?}", transactions);
let client: Client = Client::builder().access_token(token).into();
let transactions = CurrentTransactions::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 outstanding sell transactions 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 outstanding sell transactions for the account of the
current access token.
§Examples
let client: Client = Client::builder().access_token(token).into();
let transactions = CurrentTransactions::sells(&client).await?;
println!("{:?}", transactions);
let client: Client = Client::builder().access_token(token).into();
let transactions = CurrentTransactions::sells(&client)?;
println!("{:?}", transactions);
Trait Implementations§
Source§impl Clone for CurrentTransactions
impl Clone for CurrentTransactions
Source§fn clone(&self) -> CurrentTransactions
fn clone(&self) -> CurrentTransactions
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 CurrentTransactions
impl Debug for CurrentTransactions
Source§impl<'de> Deserialize<'de> for CurrentTransactions
impl<'de> Deserialize<'de> for CurrentTransactions
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 CurrentTransactions
impl RefUnwindSafe for CurrentTransactions
impl Send for CurrentTransactions
impl Sync for CurrentTransactions
impl Unpin for CurrentTransactions
impl UnwindSafe for CurrentTransactions
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