pub struct Client { /* private fields */ }Expand description
This is the main Telegram API client. Requires a valid API token.
Implementations§
Trait Implementations§
source§impl TelegramClient for Client
impl TelegramClient for Client
fn post<'life0, 'life1, 'life2, 'async_trait, Req, Resp>( &'life0 self, method: &'life1 str, req: &'life2 Req ) -> Pin<Box<dyn Future<Output = Result<Resp>> + Send + 'async_trait>>where Req: Request + 'async_trait, Resp: DeserializeOwned + Clone + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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