pub struct TelegramSettings { /* private fields */ }Expand description
Configuration for a ReqwestTelegram.
This type deliberately reads nothing from the environment. Where the token comes from — an env var, a secrets manager, a config file — is the caller’s decision, and every project already handles it differently.
Implementations§
Trait Implementations§
Source§impl Clone for TelegramSettings
impl Clone for TelegramSettings
Source§fn clone(&self) -> TelegramSettings
fn clone(&self) -> TelegramSettings
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 TelegramSettings
impl RefUnwindSafe for TelegramSettings
impl Send for TelegramSettings
impl Sync for TelegramSettings
impl Unpin for TelegramSettings
impl UnsafeUnpin for TelegramSettings
impl UnwindSafe for TelegramSettings
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