pub struct ClaudeClient;Implementations§
Source§impl ClaudeClient
impl ClaudeClient
Sourcepub async fn fetch_usage_with_header(
cookie_header: &str,
org_id: &str,
) -> Result<UsageResponse>
pub async fn fetch_usage_with_header( cookie_header: &str, org_id: &str, ) -> Result<UsageResponse>
Fetch usage using a pre-built cookie header string and org ID.
§Errors
Returns an error if the API request fails or the response cannot be parsed.
Sourcepub async fn fetch_usage(cookies: &[Cookie]) -> Result<UsageResponse>
pub async fn fetch_usage(cookies: &[Cookie]) -> Result<UsageResponse>
§Errors
Returns an error if the org ID cookie is missing, the API request fails, or the response cannot be parsed.
Auto Trait Implementations§
impl Freeze for ClaudeClient
impl RefUnwindSafe for ClaudeClient
impl Send for ClaudeClient
impl Sync for ClaudeClient
impl Unpin for ClaudeClient
impl UnsafeUnpin for ClaudeClient
impl UnwindSafe for ClaudeClient
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