pub struct SharedConfigBuilder {
pub app_info_str: Option<String>,
pub request_strategy: Option<RequestStrategy>,
pub secret: String,
pub api_base: Option<String>,
}
Expand description
This is meant for internal use when implementing compatible clients, so it may be more unstable with respect to semver.
Fields§
§app_info_str: Option<String>
The user-provided part of the user-agent we’ll use.
request_strategy: Option<RequestStrategy>
The default request strategy to use.,
secret: String
The secret key for authorizing requests.
api_base: Option<String>
The base URL to send requests to.
Implementations§
Sourcepub fn new(secret: impl Into<String>) -> Self
pub fn new(secret: impl Into<String>) -> Self
Create a new SharedConfigBuilder
with the given secret key.
Sourcepub fn request_strategy(self, strategy: RequestStrategy) -> Self
pub fn request_strategy(self, strategy: RequestStrategy) -> Self
Sets the default RequestStrategy
used when making requests.
Trait Implementations§
Source§fn clone(&self) -> SharedConfigBuilder
fn clone(&self) -> SharedConfigBuilder
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§
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