pub struct Client { /* private fields */ }Expand description
A Basecamp client: one identity, one API origin. Derive an AccountClient with
Client::for_account to reach the services.
Clients are cheap to clone and share their connection pool, credentials and hooks.
Implementations§
Source§impl Client
impl Client
Sourcepub fn builder(config: Config) -> ClientBuilder
pub fn builder(config: Config) -> ClientBuilder
A builder over a configuration.
Sourcepub fn for_account(&self, account_id: impl Into<String>) -> AccountClient
pub fn for_account(&self, account_id: impl Into<String>) -> AccountClient
The client scoped to one account. Every account-scoped path is prefixed with the id.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Forget for Client
impl Freeze for Client
impl Move for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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