pub struct NubisClientBuilder { /* private fields */ }Implementations§
Source§impl NubisClientBuilder
impl NubisClientBuilder
pub fn new() -> Self
pub fn base_url(self, base_url: impl Into<String>) -> Self
pub fn api_key(self, api_key: impl Into<String>) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn default_header(self, key: &'static str, value: impl AsRef<str>) -> Self
pub fn build(self) -> Result<NubisClient, NubisError>
Trait Implementations§
Source§impl Clone for NubisClientBuilder
impl Clone for NubisClientBuilder
Source§fn clone(&self) -> NubisClientBuilder
fn clone(&self) -> NubisClientBuilder
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 moreSource§impl Debug for NubisClientBuilder
impl Debug for NubisClientBuilder
Auto Trait Implementations§
impl Freeze for NubisClientBuilder
impl RefUnwindSafe for NubisClientBuilder
impl Send for NubisClientBuilder
impl Sync for NubisClientBuilder
impl Unpin for NubisClientBuilder
impl UnsafeUnpin for NubisClientBuilder
impl UnwindSafe for NubisClientBuilder
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