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