pub async fn accounts(&self) -> Result<Vec<Account>, Box<dyn Error>> {
        #[derive(Serialize, Deserialize)]
        struct AccountsResponse {
            accounts: Vec<Account>,
        }

        let response = self
            .get_request_builder("accounts")?
            .send()
            .await?
            .error_for_status()
            .map_err(|e| wrap_error(e))?
            .json::<AccountsResponse>()
            .await?;

        Ok(response.accounts)
    }
/// List all accounts associated with the authenticated user.
List all accounts associated with the authenticated user.
List all accounts associated with the authenticated user .
pub async fn accounts(&self) -> Result<Vec<Account>, Box<dyn Error>> {
        #[derive(Serialize, Deserialize)]
        struct AccountsResponse {
            accounts: Vec<Account>,
        }
        let response = self
            .get_request_builder("accounts")?
            .send()
            .await?
            .error_for_status()
            .map_err(|e| wrap_error(e))?
            .json::<AccountsResponse>()
            .await?;
        Ok(response.accounts)
    }
pub async fn accounts ( & self ) -> Result < Vec < Account > , Box < dyn Error > > { # [ derive ( Serialize Deserialize ) ] struct AccountsResponse { accounts : Vec < Account > , } let response = self . get_request_builder ( " " ) ? . send ( ) . await ? . error_for_status ( ) . map_err ( | e | wrap_error ( e ) ) ? . json :: < AccountsResponse > ( ) . await ? ; Ok ( response . accounts ) }
List all accounts associated with the authenticated user.
List all accounts associated with the authenticated user .
&self
&self