pub struct DocarooConfigBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> DocarooConfigBuilder<S>
impl<S: State> DocarooConfigBuilder<S>
Sourcepub fn build(self) -> DocarooConfigwhere
S: IsComplete,
pub fn build(self) -> DocarooConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn api_key(
self,
value: impl Into<String>,
) -> DocarooConfigBuilder<SetApiKey<S>>where
S::ApiKey: IsUnset,
pub fn api_key(
self,
value: impl Into<String>,
) -> DocarooConfigBuilder<SetApiKey<S>>where
S::ApiKey: IsUnset,
Required.
API key for authentication
Sourcepub fn base_url(
self,
value: impl Into<String>,
) -> DocarooConfigBuilder<SetBaseUrl<S>>where
S::BaseUrl: IsUnset,
pub fn base_url(
self,
value: impl Into<String>,
) -> DocarooConfigBuilder<SetBaseUrl<S>>where
S::BaseUrl: IsUnset,
Sourcepub fn maybe_base_url(
self,
value: Option<impl Into<String>>,
) -> DocarooConfigBuilder<SetBaseUrl<S>>where
S::BaseUrl: IsUnset,
pub fn maybe_base_url(
self,
value: Option<impl Into<String>>,
) -> DocarooConfigBuilder<SetBaseUrl<S>>where
S::BaseUrl: IsUnset,
Sourcepub fn http_client(
self,
value: Client,
) -> DocarooConfigBuilder<SetHttpClient<S>>where
S::HttpClient: IsUnset,
pub fn http_client(
self,
value: Client,
) -> DocarooConfigBuilder<SetHttpClient<S>>where
S::HttpClient: IsUnset,
Sourcepub fn maybe_http_client(
self,
value: Option<Client>,
) -> DocarooConfigBuilder<SetHttpClient<S>>where
S::HttpClient: IsUnset,
pub fn maybe_http_client(
self,
value: Option<Client>,
) -> DocarooConfigBuilder<SetHttpClient<S>>where
S::HttpClient: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for DocarooConfigBuilder<S>
impl<S = Empty> !RefUnwindSafe for DocarooConfigBuilder<S>
impl<S> Send for DocarooConfigBuilder<S>
impl<S> Sync for DocarooConfigBuilder<S>
impl<S> Unpin for DocarooConfigBuilder<S>
impl<S = Empty> !UnwindSafe for DocarooConfigBuilder<S>
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