Struct frankenstein::api_params::GetUpdatesParams
source · pub struct GetUpdatesParams {
pub offset: Option<i64>,
pub limit: Option<u32>,
pub timeout: Option<u32>,
pub allowed_updates: Option<Vec<AllowedUpdate>>,
}
Fields§
§offset: Option<i64>
§limit: Option<u32>
§timeout: Option<u32>
§allowed_updates: Option<Vec<AllowedUpdate>>
Implementations§
source§impl GetUpdatesParams
impl GetUpdatesParams
sourcepub fn builder() -> GetUpdatesParamsBuilder<((), (), (), ())>
pub fn builder() -> GetUpdatesParamsBuilder<((), (), (), ())>
Create a builder for building GetUpdatesParams
.
On the builder, call .offset(...)
(optional), .limit(...)
(optional), .timeout(...)
(optional), .allowed_updates(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of GetUpdatesParams
.
Trait Implementations§
source§impl Clone for GetUpdatesParams
impl Clone for GetUpdatesParams
source§fn clone(&self) -> GetUpdatesParams
fn clone(&self) -> GetUpdatesParams
Returns a copy 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 GetUpdatesParams
impl Debug for GetUpdatesParams
source§impl<'de> Deserialize<'de> for GetUpdatesParams
impl<'de> Deserialize<'de> for GetUpdatesParams
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
source§impl PartialEq for GetUpdatesParams
impl PartialEq for GetUpdatesParams
source§fn eq(&self, other: &GetUpdatesParams) -> bool
fn eq(&self, other: &GetUpdatesParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GetUpdatesParams
impl Serialize for GetUpdatesParams
impl Eq for GetUpdatesParams
impl StructuralPartialEq for GetUpdatesParams
Auto Trait Implementations§
impl Freeze for GetUpdatesParams
impl RefUnwindSafe for GetUpdatesParams
impl Send for GetUpdatesParams
impl Sync for GetUpdatesParams
impl Unpin for GetUpdatesParams
impl UnwindSafe for GetUpdatesParams
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