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