pub struct Builder { /* private fields */ }Expand description
A builder for Client.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn use_default_env(self) -> Self
pub fn use_default_env(self) -> Self
Use the default mod.io API host ("api.mod.io").
Sourcepub fn use_test_env(self) -> Self
pub fn use_test_env(self) -> Self
Use the mod.io API test host ("api.test.mod.io").
Sourcepub fn host<V>(self, host: V) -> Self
pub fn host<V>(self, host: V) -> Self
Set the mod.io API host.
Defaults to "api.mod.io" if not set.
Sourcepub fn user_agent<V>(self, value: V) -> Self
pub fn user_agent<V>(self, value: V) -> Self
Set the user agent used for every request.
Sourcepub fn target_platform(self, platform: TargetPlatform) -> Self
pub fn target_platform(self, platform: TargetPlatform) -> Self
Set the target platform.
See the mod.io docs for more information.
Sourcepub fn target_portal(self, portal: TargetPortal) -> Self
pub fn target_portal(self, portal: TargetPortal) -> Self
Set the target portal.
See the mod.io docs for more information.
Auto Trait Implementations§
impl Freeze for Builder
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn compression(self) -> Compression<Self>where
Self: Sized,
fn compression(self) -> Compression<Self>where
Self: Sized,
Compresses response bodies. Read more
§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more