pub struct GGProgression {
pub id: Option<i64>,
pub origin_order: Option<i64>,
pub origin_phase: Option<Box<GGPhase>>,
pub origin_phase_group: Option<Box<GGPhaseGroup>>,
pub origin_placement: Option<i64>,
}
Expand description
Equivalent for start.gg Progression.
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§
§id: Option<i64>
§origin_order: Option<i64>
§origin_phase: Option<Box<GGPhase>>
§origin_phase_group: Option<Box<GGPhaseGroup>>
§origin_placement: Option<i64>
Implementations§
Source§impl GGProgression
impl GGProgression
Sourcepub fn id(&self) -> i64
pub fn id(&self) -> i64
Returns the id of the progression.
Returns zero if not set or wasn’t queried.
Sourcepub fn origin_order(&self) -> i64
pub fn origin_order(&self) -> i64
Returns the origin order of the progression.
Returns zero if not set or wasn’t queried.
Sourcepub fn origin_phase(&self) -> GGPhase
pub fn origin_phase(&self) -> GGPhase
Returns the origin phase of the progression.
Returns an empty phase if not set or wasn’t queried.
Sourcepub fn origin_phase_group(&self) -> GGPhaseGroup
pub fn origin_phase_group(&self) -> GGPhaseGroup
Returns the origin phase group of the progression.
Returns an empty phase group if not set or wasn’t queried.
Sourcepub fn origin_placement(&self) -> i64
pub fn origin_placement(&self) -> i64
Returns the origin placement of the progression.
Returns zero if not set or wasn’t queried.
Trait Implementations§
Source§impl Clone for GGProgression
impl Clone for GGProgression
Source§fn clone(&self) -> GGProgression
fn clone(&self) -> GGProgression
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more