[][src]Struct livesplit_core::run::editor::SegmentState

pub struct SegmentState {
    pub icon_change: Option<String>,
    pub name: String,
    pub split_time: String,
    pub segment_time: String,
    pub best_segment_time: String,
    pub comparison_times: Vec<String>,
    pub selected: SelectionState,
}

Describes the current state of a segment.

Fields

icon_change: Option<String>

The segment's icon encoded as a Data URL. This value is only specified whenever the icon changes. The String itself may be empty. This indicates that there is no icon.

name: String

The name of the segment.

split_time: String

The segment's split time for the active timing method.

segment_time: String

The segment time for the active timing method.

best_segment_time: String

The best segment time for the active timing method.

comparison_times: Vec<String>

All of the times of the custom comparison for the active timing method. The order of these matches up with the order of the custom comparisons provided by the Run Editor's State object.

selected: SelectionState

Describes the segment's selection state.

Trait Implementations

impl Debug for Segment[src]

impl Serialize for Segment[src]

impl<'de> Deserialize<'de> for Segment[src]

Auto Trait Implementations

impl Send for Segment

impl Sync for Segment

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.