pub struct OpenRouterClient;Implementations§
Source§impl OpenRouterClient
impl OpenRouterClient
Sourcepub async fn fetch_credits(
management_key: &str,
) -> Result<CreditsResponse, Box<dyn Error>>
pub async fn fetch_credits( management_key: &str, ) -> Result<CreditsResponse, Box<dyn Error>>
§Errors
Returns an error if the API request fails or the response cannot be parsed.
Auto Trait Implementations§
impl Freeze for OpenRouterClient
impl RefUnwindSafe for OpenRouterClient
impl Send for OpenRouterClient
impl Sync for OpenRouterClient
impl Unpin for OpenRouterClient
impl UnsafeUnpin for OpenRouterClient
impl UnwindSafe for OpenRouterClient
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