pub struct UserRating {
pub value: f64,
}Expand description
UserRating
JSON schema
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"description": "Key is omitted when the player isn't rated yet.",
"type": "number"
}
}
}Fields§
§value: f64Implementations§
Source§impl UserRating
impl UserRating
pub fn builder() -> UserRating
Trait Implementations§
Source§impl Clone for UserRating
impl Clone for UserRating
Source§fn clone(&self) -> UserRating
fn clone(&self) -> UserRating
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 UserRating
impl Debug for UserRating
Source§impl<'de> Deserialize<'de> for UserRating
impl<'de> Deserialize<'de> for UserRating
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 From<UserRating> for UserRating
impl From<UserRating> for UserRating
Source§fn from(value: UserRating) -> Self
fn from(value: UserRating) -> Self
Converts to this type from the input type.
Source§impl Serialize for UserRating
impl Serialize for UserRating
Source§impl TryFrom<UserRating> for UserRating
impl TryFrom<UserRating> for UserRating
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UserRating) -> Result<Self, ConversionError>
fn try_from(value: UserRating) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for UserRating
impl RefUnwindSafe for UserRating
impl Send for UserRating
impl Sync for UserRating
impl Unpin for UserRating
impl UnsafeUnpin for UserRating
impl UnwindSafe for UserRating
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