pub struct MockTelegram { /* private fields */ }Expand description
A Telegram which records messages instead of sending them.
Used both as the test double and as the local-development implementation, so that neither tests nor a developer’s machine can reach the real bot. It records every message and logs nothing.
Implementations§
Trait Implementations§
Source§impl Debug for MockTelegram
impl Debug for MockTelegram
Source§impl Default for MockTelegram
impl Default for MockTelegram
Source§fn default() -> MockTelegram
fn default() -> MockTelegram
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MockTelegram
impl RefUnwindSafe for MockTelegram
impl Send for MockTelegram
impl Sync for MockTelegram
impl Unpin for MockTelegram
impl UnsafeUnpin for MockTelegram
impl UnwindSafe for MockTelegram
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