pub struct ClientBuilder { /* private fields */ }
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn with_base_url(self, base_url: Uri) -> Self
pub fn with_base_url(self, base_url: Uri) -> Self
Explicitly set a base url for the fdap server. Otherwise, the default url be read from an environment variable.
Sourcepub fn with_token(self, token: String) -> Self
pub fn with_token(self, token: String) -> Self
Explicitly set a token. Otherwise, the token will be read from an environment variable.
Sourcepub fn with_log(self, log: Log) -> Self
pub fn with_log(self, log: Log) -> Self
Override the default logger. Logging only occurs at DEBUG level and the default logger won’t log anything.
pub fn build(self) -> Result<Client, Error>
Trait Implementations§
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