pub struct TrenchBotConfig {
pub base_url: String,
pub rate_limit_per_minute: u32,
pub request_timeout: u64,
}Expand description
Configuration for TrenchBot API access
Fields§
§base_url: StringAPI base URL (default: https://trench.bot/api)
rate_limit_per_minute: u32Rate limit requests per minute (default: 60)
request_timeout: u64Timeout for API requests in seconds (default: 30)
Trait Implementations§
Source§impl Clone for TrenchBotConfig
impl Clone for TrenchBotConfig
Source§fn clone(&self) -> TrenchBotConfig
fn clone(&self) -> TrenchBotConfig
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 TrenchBotConfig
impl Debug for TrenchBotConfig
Auto Trait Implementations§
impl Freeze for TrenchBotConfig
impl RefUnwindSafe for TrenchBotConfig
impl Send for TrenchBotConfig
impl Sync for TrenchBotConfig
impl Unpin for TrenchBotConfig
impl UnwindSafe for TrenchBotConfig
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