pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub async fn new( user_credentials_file: PathBuf, client_credentials_file: PathBuf, ) -> Result<Self, SharesightReqwestError>
pub async fn execute<'a, T: ApiEndpoint<'a>, U: DeserializeOwned>( &'a self, parameters: &'a T::Parameters, ) -> Result<U, SharesightReqwestError>
pub async fn build_portfolio_index( &self, ) -> Result<NameIndex<PortfolioListPortfoliosSuccess>, SharesightReqwestError>
pub async fn build_cash_account_index( &self, portfolio: &PortfolioListPortfoliosSuccess, ) -> Result<NameIndex<CashAccountsListCashAccountsSuccess>, SharesightReqwestError>
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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