pub struct Tank01Config {
pub api_key: Secret,
pub api_base_url: String,
pub rapidapi_host: String,
pub timeout: Duration,
}Fields§
§api_key: Secret§api_base_url: String§rapidapi_host: String§timeout: DurationImplementations§
Source§impl Tank01Config
impl Tank01Config
pub fn new(api_key: Secret) -> Tank01Config
pub fn with_base_url(self, api_base_url: impl Into<String>) -> Tank01Config
pub fn with_api_base_url(self, api_base_url: impl Into<String>) -> Tank01Config
pub fn with_rapidapi_host( self, rapidapi_host: impl Into<String>, ) -> Tank01Config
pub fn with_host(self, rapidapi_host: impl Into<String>) -> Tank01Config
pub fn with_timeout(self, timeout: Duration) -> Tank01Config
Trait Implementations§
Source§impl Clone for Tank01Config
impl Clone for Tank01Config
Source§fn clone(&self) -> Tank01Config
fn clone(&self) -> Tank01Config
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Tank01Config
impl RefUnwindSafe for Tank01Config
impl Send for Tank01Config
impl Sync for Tank01Config
impl Unpin for Tank01Config
impl UnsafeUnpin for Tank01Config
impl UnwindSafe for Tank01Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more