pub enum SegmentId {
    Name(Field<Utf8String>),
    Uuid(Field<Utf8String>),
    Sport(Field<Sport>),
    Enabled(Field<Bool>),
    UserProfilePrimaryKey(Field<Uint32>),
    DeviceId(Field<Uint32>),
    DefaultRaceLeader(Field<Uint8>),
    DeleteStatus(Field<SegmentDeleteStatus>),
    SelectionType(Field<SegmentSelectionType>),
    Unknown {
        data: Vec<u8>,
        field_def_num: u8,
    },
}
Expand description

Unique Identification data for a segment file

Variants

Name(Field<Utf8String>)

Friendly name assigned to segment

Uuid(Field<Utf8String>)

UUID of the segment

Sport(Field<Sport>)

Sport associated with the segment

Enabled(Field<Bool>)

Segment enabled for evaluation

UserProfilePrimaryKey(Field<Uint32>)

Primary key of the user that created the segment

DeviceId(Field<Uint32>)

ID of the device that created the segment

DefaultRaceLeader(Field<Uint8>)

Index for the Leader Board entry selected as the default race participant

DeleteStatus(Field<SegmentDeleteStatus>)

Indicates if any segments should be deleted

SelectionType(Field<SegmentSelectionType>)

Indicates how the segment was selected to be sent to the device

Unknown

Fields

data: Vec<u8>
field_def_num: u8

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.