pub struct KagiClient { /* private fields */ }Implementations§
Source§impl KagiClient
impl KagiClient
pub fn builder() -> KagiClientBuilder
pub fn new( credentials: Credentials, config: ClientConfig, ) -> Result<Self, KagiError>
pub fn with_bot_token(token: BotToken) -> Result<Self, KagiError>
pub fn with_session_token(token: SessionToken) -> Result<Self, KagiError>
pub fn official_api(&self) -> Result<OfficialApi<'_>, KagiError>
pub fn session_web(&self) -> Result<SessionWeb<'_>, KagiError>
Trait Implementations§
Source§impl Clone for KagiClient
impl Clone for KagiClient
Source§fn clone(&self) -> KagiClient
fn clone(&self) -> KagiClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KagiClient
impl !RefUnwindSafe for KagiClient
impl Send for KagiClient
impl Sync for KagiClient
impl Unpin for KagiClient
impl UnsafeUnpin for KagiClient
impl !UnwindSafe for KagiClient
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