pub struct ClientBuilder { /* private fields */ }Expand description
Builder for creating a configured Client instance
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn network(self, network: Network) -> Self
pub fn network(self, network: Network) -> Self
Set the network to use (mainnet, preprod, preview, or guild)
Sourcepub fn base_url<S: Into<String>>(self, url: S) -> Self
pub fn base_url<S: Into<String>>(self, url: S) -> Self
Set a custom base URL (overrides network setting)
Sourcepub fn auth_token<S: Into<String>>(self, token: S) -> Self
pub fn auth_token<S: Into<String>>(self, token: S) -> Self
Set the authentication token without expiry
Sourcepub fn auth_token_with_expiry<S: Into<String>>(
self,
token: S,
expiry: DateTime<Utc>,
) -> Self
pub fn auth_token_with_expiry<S: Into<String>>( self, token: S, expiry: DateTime<Utc>, ) -> Self
Set the authentication token with expiry
Sourcepub fn auth(self, auth: AuthConfig) -> Self
pub fn auth(self, auth: AuthConfig) -> Self
Set authentication configuration directly
Sourcepub fn rate_limit(self, quota: Quota) -> Self
pub fn rate_limit(self, quota: Quota) -> Self
Set the rate limit quota
Trait Implementations§
Source§impl Debug for ClientBuilder
impl Debug for ClientBuilder
Source§impl Default for ClientBuilder
impl Default for ClientBuilder
Source§fn default() -> ClientBuilder
fn default() -> ClientBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin 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