pub struct ClientBuilder { /* private fields */ }Expand description
Builder for the async Client.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn redfish_root_path(self, path: &str) -> Result<Self>
pub fn redfish_root_path(self, path: &str) -> Result<Self>
Override the Redfish root path (default: redfish/v1).
Examples:
redfish/v1/redfish/v1/
Sourcepub fn default_header(self, name: HeaderName, value: HeaderValue) -> Self
pub fn default_header(self, name: HeaderName, value: HeaderValue) -> Self
Add a default header applied to all requests.
Sourcepub fn connect_timeout(self, timeout: Duration) -> Self
pub fn connect_timeout(self, timeout: Duration) -> Self
Set connect timeout.
Sourcepub fn retry_policy(self, retry: RetryPolicy) -> Self
pub fn retry_policy(self, retry: RetryPolicy) -> Self
Configure retries.
Sourcepub fn body_snippet_limit(self, limit: usize) -> Self
pub fn body_snippet_limit(self, limit: usize) -> Self
Configure how much of an error body to keep for diagnostics.
Set to 0 to disable.
Sourcepub fn user_agent(self, user_agent: impl Into<String>) -> Self
pub fn user_agent(self, user_agent: impl Into<String>) -> Self
Override the User-Agent header.
Trait Implementations§
Source§impl Clone for ClientBuilder
impl Clone for ClientBuilder
Source§fn clone(&self) -> ClientBuilder
fn clone(&self) -> ClientBuilder
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 moreAuto 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