pub struct ScoreSubmission {
pub kind: Option<String>,
pub leaderboard_id: Option<String>,
pub score: Option<i64>,
pub score_tag: Option<String>,
pub signature: Option<String>,
}Expand description
A request to submit a score to leaderboards.
This type is not used in any activity, and only used as part of another schema.
Fields§
§kind: Option<String>Uniquely identifies the type of this resource. Value is always the fixed string games#scoreSubmission.
leaderboard_id: Option<String>The leaderboard this score is being submitted to.
score: Option<i64>The new score being submitted.
score_tag: Option<String>Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
signature: Option<String>Signature Values will contain URI-safe characters as defined by section 2.3 of RFC 3986.
Trait Implementations§
Source§impl Clone for ScoreSubmission
impl Clone for ScoreSubmission
Source§fn clone(&self) -> ScoreSubmission
fn clone(&self) -> ScoreSubmission
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 ScoreSubmission
impl Debug for ScoreSubmission
Source§impl Default for ScoreSubmission
impl Default for ScoreSubmission
Source§fn default() -> ScoreSubmission
fn default() -> ScoreSubmission
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScoreSubmission
impl<'de> Deserialize<'de> for ScoreSubmission
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 Serialize for ScoreSubmission
impl Serialize for ScoreSubmission
impl Part for ScoreSubmission
Auto Trait Implementations§
impl Freeze for ScoreSubmission
impl RefUnwindSafe for ScoreSubmission
impl Send for ScoreSubmission
impl Sync for ScoreSubmission
impl Unpin for ScoreSubmission
impl UnwindSafe for ScoreSubmission
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