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