PortfolioApiClient

Struct PortfolioApiClient 

Source
pub struct PortfolioApiClient<C: Connect> { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl<C: Connect> PortfolioApi for PortfolioApiClient<C>

Source§

fn portfolio_account_id_allocation_get( &self, account_id: &str, ) -> Box<dyn Future<Item = Allocation, Error = Error<Value>>>

Source§

fn portfolio_account_id_ledger_get( &self, account_id: &str, ) -> Box<dyn Future<Item = InlineResponse20033, Error = Error<Value>>>

Source§

fn portfolio_account_id_meta_get( &self, account_id: &str, ) -> Box<dyn Future<Item = Accounts, Error = Error<Value>>>

Source§

fn portfolio_account_id_position_conid_get( &self, account_id: &str, conid: i32, ) -> Box<dyn Future<Item = Position, Error = Error<Value>>>

Source§

fn portfolio_account_id_positions_invalidate_post( &self, account_id: &str, ) -> Box<dyn Future<Item = Value, Error = Error<Value>>>

Source§

fn portfolio_account_id_positions_page_id_get( &self, account_id: &str, page_id: &str, model: &str, sort: &str, direction: &str, period: &str, ) -> Box<dyn Future<Item = Position, Error = Error<Value>>>

Source§

fn portfolio_account_id_summary_get( &self, account_id: &str, ) -> Box<dyn Future<Item = InlineResponse20034, Error = Error<Value>>>

Source§

fn portfolio_accounts_get( &self, ) -> Box<dyn Future<Item = Accounts, Error = Error<Value>>>

Source§

fn portfolio_allocation_post( &self, body: Body10, ) -> Box<dyn Future<Item = Allocation, Error = Error<Value>>>

Source§

fn portfolio_positions_conid_get( &self, conid: i32, ) -> Box<dyn Future<Item = InlineResponse20032, Error = Error<Value>>>

Source§

fn portfolio_subaccounts_get( &self, ) -> Box<dyn Future<Item = Account, Error = Error<Value>>>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.