pub struct ClientBuilder { /* private fields */ }Expand description
Builder for optional client-wide transport configuration.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn base_url(self, base_url: impl Into<String>) -> Self
pub fn base_url(self, base_url: impl Into<String>) -> Self
Override the API root, primarily for private deployments and tests.
Sourcepub const fn reference_date(self, date: NaturalDate) -> Self
pub const fn reference_date(self, date: NaturalDate) -> Self
Override the Shanghai natural date used by relative-date validation.
This is useful for deterministic tests and historical request replay.
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