[−][src]Struct splits_io_api::Segment
A Segment maps to a single piece of a run, also called a split.
Fields
gametime_duration_ms: Option<f64>Gametime duration in milliseconds of the segment.
gametime_end_ms: Option<f64>The total elapsed time of the run at the moment when this segment was finished in gametime (such that the run's duration is equal to the final split's finish time). Provided in milliseconds.
gametime_gold: boolWhether or not this split was the shortest duration the runner has ever gotten on this segment in gametime. This field is shorthand for duration == best.
gametime_reduced: boolWhether or not this segment was "reduced" in gametime; that is, had its duration affected by previous splits being skipped.
gametime_shortest_duration_ms: Option<f64>The shortest duration the runner has ever gotten on this segment in gametime. Provided in milliseconds.
gametime_skipped: boolWhether or not this split was skipped in gametime -- some timers let the runner skip over a split in case they forgot to hit their split button on time. Beware that a skipped split's duration is considered 0, and instead is rolled into the following split.
gametime_start_ms: Option<f64>The total elapsed time of the run at the moment when this segment was started in gametime. Provided in milliseconds.
histories: Option<Vec<SegmentItemHistories>>Ordered history objects of all previous attempts of the segment. The first item is the first run recorded by the runner's timer into the source file. The last item is the most recent one. This field is only nonempty if the source timer records history.
id: UuidInternal ID of the segment.
name: Box<str>Name of the segment. This value is an exact copy of timers' fields.
realtime_duration_ms: f64Realtime duration in milliseconds of the segment.
realtime_end_ms: f64The total elapsed time of the run at the moment when this segment was finished in realtime (such that the run's duration is equal to the final split's finish time). Provided in milliseconds.
realtime_gold: boolWhether or not this split was the shortest duration the runner has ever gotten on this segment in realtime. This field is shorthand for realtime_duration_ms == realtime_shortest_duration_ms.
realtime_reduced: boolWhether or not this segment was "reduced" in realtime; that is, had its duration affected by previous splits being skipped.
realtime_shortest_duration_ms: Option<f64>The shortest duration the runner has ever gotten on this segment in realtime. Provided in milliseconds.
realtime_skipped: boolWhether or not this split was skipped in realtime -- some timers let the runner skip over a split in case they forgot to hit their split button on time. Beware that a skipped split's duration is considered 0, and instead is rolled into the following split.
realtime_start_ms: f64The total elapsed time of the run at the moment when this segment was started in realtime. Provided in milliseconds.
segment_number: u32The index of the segment within the run. (This value starts at 0.)
Trait Implementations
impl Debug for Segment[src]
impl<'de> Deserialize<'de> for Segment[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Segment[src]
impl Send for Segment[src]
impl Sync for Segment[src]
impl Unpin for Segment[src]
impl UnwindSafe for Segment[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,