#[non_exhaustive]pub struct RequestEventsGet {
pub last_event_id: EventId,
pub poll_time: Option<u64>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.last_event_id: EventId§poll_time: Option<u64>Implementations§
Source§impl RequestEventsGet
impl RequestEventsGet
pub fn _get_chat_id(&self) -> Option<&ChatId>
Source§impl RequestEventsGet
impl RequestEventsGet
pub fn _get_multipart(&self) -> &MultipartName
Source§impl RequestEventsGet
impl RequestEventsGet
Sourcepub fn with_poll_time(self, value: u64) -> Self
pub fn with_poll_time(self, value: u64) -> Self
Sets the field poll_time
Trait Implementations§
Source§impl BotRequest for RequestEventsGet
impl BotRequest for RequestEventsGet
const METHOD: &'static str = "events/get"
type Args = u32
type RequestType = RequestEventsGet
type ResponseType = ResponseEventsGet
fn new(last_event_id: EventId) -> Self
fn get_chat_id(&self) -> Option<&ChatId>
fn get_multipart(&self) -> &MultipartName
const HTTP_METHOD: HTTPMethod = HTTPMethod::GET
Source§impl Clone for RequestEventsGet
impl Clone for RequestEventsGet
Source§fn clone(&self) -> RequestEventsGet
fn clone(&self) -> RequestEventsGet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestEventsGet
impl Debug for RequestEventsGet
Source§impl Default for RequestEventsGet
impl Default for RequestEventsGet
Source§fn default() -> RequestEventsGet
fn default() -> RequestEventsGet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RequestEventsGet
impl<'de> Deserialize<'de> for RequestEventsGet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RequestEventsGet
impl RefUnwindSafe for RequestEventsGet
impl Send for RequestEventsGet
impl Sync for RequestEventsGet
impl Unpin for RequestEventsGet
impl UnwindSafe for RequestEventsGet
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