pub const fn new(
        index: i32,
        time: Time,
        started: Option<AtomicDateTime>,
        ended: Option<AtomicDateTime>,
        pause_time: Option<TimeSpan>,
    ) -> Self {
        Self {
            index,
            time,
            started,
            ended,
            pause_time,
        }
    }
/// Creates a new Attempt, logging an attempt to speedrun a category. You
/// need the provide a unique index for the attempt (The index needs to be
/// unique for the Run, not across all the Run objects). Additionally you
/// provide the split time of the last segment. If it is empty, the attempt
/// is considered being reset early. If there's information available about
/// when the attempt was started and when it ended, this information can be
/// provided. Both of these should be provided for unfinished attempts as
/// well, if possible. If it is known that the attempt was paused for a
/// certain amount of time, this can be provided as well.
Creates a new Attempt, logging an attempt to speedrun a category. You
need the provide a unique index for the attempt (The index needs to be
unique for the Run, not across all the Run objects). Additionally you
provide the split time of the last segment. If it is empty, the attempt
is considered being reset early. If there's information available about
when the attempt was started and when it ended, this information can be
provided. Both of these should be provided for unfinished attempts as
well, if possible. If it is known that the attempt was paused for a
certain amount of time, this can be provided as well.
Creates a new Attempt logging an attempt to speedrun a category . You need the provide a unique index for the attempt ( The index needs to be unique for the Run not across all the Run objects ) . Additionally you provide the split time of the last segment . If it is empty the attempt is considered being reset early . If there ' s information available about when the attempt was started and when it ended this information can be provided . Both of these should be provided for unfinished attempts as well if possible . If it is known that the attempt was paused for a certain amount of time this can be provided as well .
pub const fn new(
        index: i32,
        time: Time,
        started: Option<AtomicDateTime>,
        ended: Option<AtomicDateTime>,
        pause_time: Option<TimeSpan>,
    ) -> Self {
        Self {
            index,
            time,
            started,
            ended,
            pause_time,
        }
    }
pub const fn new ( index : i32 , time : Time , started : Option < AtomicDateTime > , ended : Option < AtomicDateTime > , pause_time : Option < TimeSpan > , ) -> Self { Self { index , time , started , ended , pause_time , } }
Creates a new Attempt, logging an attempt to speedrun a category.
Creates a new Attempt logging an attempt to speedrun a category .
index
i32
time
Time
started
Option<AtomicDateTime>
ended
Option<AtomicDateTime>
pause_time
Option<TimeSpan>
index
i32
time
Time
started
Option<AtomicDateTime>
ended
Option<AtomicDateTime>
pause_time
Option<TimeSpan>