pub struct GGRound {
pub best_of: Option<i64>,
pub id: Option<i64>,
pub number: Option<i64>,
pub start_at: Option<i64>,
}
Expand description
Equivalent for start.gg Round.
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§
§best_of: Option<i64>
§id: Option<i64>
§number: Option<i64>
§start_at: Option<i64>
Implementations§
Source§impl GGRound
impl GGRound
Sourcepub fn best_of(&self) -> i64
pub fn best_of(&self) -> i64
Returns the number of games needed to win a majority of in the round.
Returns zero if not set or wasn’t queried.
Sourcepub fn id(&self) -> i64
pub fn id(&self) -> i64
Returns the id of the round.
Returns zero if not set or wasn’t queried.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GGRound
impl<'de> Deserialize<'de> for GGRound
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 GGRound
impl RefUnwindSafe for GGRound
impl Send for GGRound
impl Sync for GGRound
impl Unpin for GGRound
impl UnwindSafe for GGRound
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