pub struct Methods {
pub request: RequestBuilder,
pub context: Arc<RwLock<Ctx>>,
}Fields§
§request: RequestBuilder§context: Arc<RwLock<Ctx>>Trait Implementations§
source§impl Method for Methods
impl Method for Methods
fn new(token: String) -> Self
async fn keyboard<T: Serialize, N: NdArray<T>>( &self, message: &str, one_time: bool, inline: bool, buttons: N ) -> Result<()>
async fn event_answer<'de, T: Serialize, A: DeserializeOwned + PartialEq + Serialize>( &self, event_data: T, payload: A ) -> Result<Option<A>>
async fn reply(&self, message: &str)
async fn long_poll(&self, group_id: u32) -> LongPollResponse
async fn connect( &self, server: &str, key: String, ts: String, wait: usize ) -> Ctx
async fn get_users(&self, user_ids: &[u64]) -> Result<Vec<User>>
fn custom_request(&self) -> &RequestBuilder
async fn context(&self) -> RwLockReadGuard<'_, Ctx>
Auto Trait Implementations§
impl !RefUnwindSafe for Methods
impl Send for Methods
impl Sync for Methods
impl Unpin for Methods
impl !UnwindSafe for Methods
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