pub struct Configuration { /* private fields */ }
Implementations§
Source§impl Configuration
impl Configuration
pub fn new(rate_limit_ms: Option<u64>, referer: &str, x_api_key: &str) -> Self
pub fn get_base_url(&self) -> &str
pub const fn get_rate_limit_ms(&self) -> u64
pub fn get_referer(&self) -> &str
pub fn get_x_api_key(&self) -> &str
pub fn get_referrer(&self) -> &str
pub fn set_base_url(&mut self, base_url: String)
pub fn set_rate_limit_ms(&mut self, rate_limit_ms: u64)
pub fn set_referer(&mut self, referer: String)
pub fn set_x_api_key(&mut self, x_api_key: String)
pub fn set_referrer(&mut self, referrer: String)
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
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 moreSource§impl Debug for Configuration
impl Debug for Configuration
Source§impl<'de> Deserialize<'de> for Configuration
impl<'de> Deserialize<'de> for Configuration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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