pub struct RestClientOptions {
pub access_token: String,
pub base_url: String,
pub retry: Option<u32>,
pub timeout_ms: Option<u64>,
pub rate_limit_offset_ms: Option<u64>,
}
Fields§
§access_token: String
§base_url: String
§retry: Option<u32>
§timeout_ms: Option<u64>
§rate_limit_offset_ms: Option<u64>
Implementations§
Source§impl RestClientOptions
impl RestClientOptions
pub fn new(access_token: String) -> Self
pub fn with_base_url(self, base_url: String) -> Self
pub fn with_retry(self, retry: u32) -> Self
pub fn with_timeout_ms(self, timeout_ms: u64) -> Self
pub fn with_rate_limit_offset_ms(self, rate_limit_offset_ms: u64) -> Self
Trait Implementations§
Source§impl Clone for RestClientOptions
impl Clone for RestClientOptions
Source§fn clone(&self) -> RestClientOptions
fn clone(&self) -> RestClientOptions
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 RestClientOptions
impl RefUnwindSafe for RestClientOptions
impl Send for RestClientOptions
impl Sync for RestClientOptions
impl Unpin for RestClientOptions
impl UnwindSafe for RestClientOptions
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