pub struct GetUpdates { /* private fields */ }Expand description
Use this method to receive incoming updates using long polling.
Implementations§
Source§impl GetUpdates
impl GetUpdates
pub fn new() -> GetUpdates
pub fn offset(&mut self, offset: i64) -> &mut GetUpdates
pub fn limit(&mut self, limit: i64) -> &mut GetUpdates
pub fn timeout(&mut self, timeout: i64) -> &mut GetUpdates
pub fn allowed_updates(&mut self, updates: &[AllowedUpdate]) -> &mut GetUpdates
Trait Implementations§
Source§impl Clone for GetUpdates
impl Clone for GetUpdates
Source§fn clone(&self) -> GetUpdates
fn clone(&self) -> GetUpdates
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 GetUpdates
impl Debug for GetUpdates
Source§impl PartialEq for GetUpdates
impl PartialEq for GetUpdates
Source§impl PartialOrd for GetUpdates
impl PartialOrd for GetUpdates
Source§impl Request for GetUpdates
impl Request for GetUpdates
type Type = JsonRequestType<GetUpdates>
type Response = JsonIdResponse<Vec<Update>>
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
Source§impl Serialize for GetUpdates
impl Serialize for GetUpdates
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for GetUpdates
Auto Trait Implementations§
impl Freeze for GetUpdates
impl RefUnwindSafe for GetUpdates
impl Send for GetUpdates
impl Sync for GetUpdates
impl Unpin for GetUpdates
impl UnwindSafe for GetUpdates
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