pub enum TelegramError {
RequestError(Error),
ApiError(String),
}Variants§
Trait Implementations§
Source§impl Debug for TelegramError
impl Debug for TelegramError
Source§impl From<Error> for TelegramError
impl From<Error> for TelegramError
Source§fn from(error: ReqwestError) -> Self
fn from(error: ReqwestError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TelegramError
impl !RefUnwindSafe for TelegramError
impl Send for TelegramError
impl Sync for TelegramError
impl Unpin for TelegramError
impl !UnwindSafe for TelegramError
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