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
Source§async fn get_members(
&self,
offset: Option<u16>,
count: Option<u16>,
extended: bool,
) -> Result<Members>
async fn get_members( &self, offset: Option<u16>, count: Option<u16>, extended: bool, ) -> Result<Members>
This function retrieves a list of participants in the conversation
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: &[i32]) -> Result<Vec<User>>
fn custom_request(&self) -> &RequestBuilder
async fn context(&self) -> RwLockReadGuard<'_, Ctx>
Auto Trait Implementations§
impl Freeze for Methods
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