Struct coinbase::client::Client [−][src]
Implementations
impl Client
[src]
pub async fn list_accounts(
&self,
pagination: &PaginationOptions
) -> Result<PagedResponse<Account>>
[src]
&self,
pagination: &PaginationOptions
) -> Result<PagedResponse<Account>>
List accounts
Lists current user’s accounts to which the authentication method has access to.
pub async fn get_account(&self, account_id: &str) -> Result<Response<Account>>
[src]
Show an account
Show current user’s account. To access the primary account for a given currency, a currency string (BTC or ETH) can be used instead of the account id in the URL.
impl Client
[src]
pub fn from_api_key(
api_key: String,
api_secret: String
) -> Result<Client, InvalidKeyLength>
[src]
api_key: String,
api_secret: String
) -> Result<Client, InvalidKeyLength>
pub fn from_env() -> Result<Client, InvalidKeyLength>
[src]
pub async fn send_request<T, U>(
&self,
method: Method,
url: &str,
req: Option<&T>
) -> Result<U> where
T: Serialize,
U: for<'de> Deserialize<'de>,
[src]
&self,
method: Method,
url: &str,
req: Option<&T>
) -> Result<U> where
T: Serialize,
U: for<'de> Deserialize<'de>,
impl Client
[src]
pub async fn list_transactions(
&self,
account_id: &str,
pagination: &PaginationOptions
) -> Result<PagedResponse<Transaction>>
[src]
&self,
account_id: &str,
pagination: &PaginationOptions
) -> Result<PagedResponse<Transaction>>
List transactions
Lists account’s transactions. See transaction resource for more information.
pub async fn get_transaction(
&self,
account_id: &str,
transaction_id: &str
) -> Result<Response<Transaction>>
[src]
&self,
account_id: &str,
transaction_id: &str
) -> Result<Response<Transaction>>
Show a transaction
Show an individual transaction for an account. See transaction resource for more information.
impl Client
[src]
pub async fn get_user(&self, user_id: &str) -> Result<Response<User>>
[src]
Show a user
Get any user’s public information with their ID.
pub async fn get_current_user(&self) -> Result<Response<User>>
[src]
Show current user
Get current user’s public information.
pub async fn get_auth_info(&self) -> Result<Response<Auth>>
[src]
Show authorization information
Get current user’s authorization information including granted scopes and send limits when using OAuth2 authentication.
pub async fn update_user<'a>(
&self,
update: &'a UserUpdate<'a>
) -> Result<Response<User>>
[src]
&self,
update: &'a UserUpdate<'a>
) -> Result<Response<User>>
Update current user
Modify current user and their preferences.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
[src]
impl Send for Client
[src]
impl Sync for Client
[src]
impl Unpin for Client
[src]
impl !UnwindSafe for Client
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,