pub struct GGScore {
pub display_value: Option<String>,
pub label: Option<String>,
pub value: Option<f64>,
}Expand description
Equivalent for start.gg Score.
Each element in the structure is optional, allowing a user to only query values they want. Given each is an option and not a requirement, a method is included for each element with the same name. These methods will unwrap and return the proper value without any unwrapping or references needed.
Fields§
§display_value: Option<String>§label: Option<String>§value: Option<f64>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GGScore
impl<'de> Deserialize<'de> for GGScore
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
Auto Trait Implementations§
impl Freeze for GGScore
impl RefUnwindSafe for GGScore
impl Send for GGScore
impl Sync for GGScore
impl Unpin for GGScore
impl UnwindSafe for GGScore
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