pub struct ClientBuilder { /* private fields */ }Expand description
Builder for constructing an EeroClient.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
pub fn new() -> Self
Sourcepub fn base_url(self, url: impl Into<String>) -> Self
pub fn base_url(self, url: impl Into<String>) -> Self
Set the API base URL (for testing or alternative endpoints).
Sourcepub fn credential_store(self, store: Box<dyn CredentialStore>) -> Self
pub fn credential_store(self, store: Box<dyn CredentialStore>) -> Self
Set the credential store implementation.
Sourcepub fn build(self) -> Result<EeroClient>
pub fn build(self) -> Result<EeroClient>
Build the client.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl !RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin for ClientBuilder
impl !UnwindSafe for ClientBuilder
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