pub fn segment_id_message() -> MessageInfo {
    let mut fields = HashMap::new();
    // Friendly name assigned to segment
    let field = FieldInfo {
        name: "name",
        field_type: FieldDataType::String,
        def_number: 0,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(0, field);
    // UUID of the segment
    let field = FieldInfo {
        name: "uuid",
        field_type: FieldDataType::String,
        def_number: 1,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(1, field);
    // Sport associated with the segment
    let field = FieldInfo {
        name: "sport",
        field_type: FieldDataType::Sport,
        def_number: 2,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(2, field);
    // Segment enabled for evaluation
    let field = FieldInfo {
        name: "enabled",
        field_type: FieldDataType::Bool,
        def_number: 3,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(3, field);
    // Primary key of the user that created the segment
    let field = FieldInfo {
        name: "user_profile_primary_key",
        field_type: FieldDataType::UInt32,
        def_number: 4,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(4, field);
    // ID of the device that created the segment
    let field = FieldInfo {
        name: "device_id",
        field_type: FieldDataType::UInt32,
        def_number: 5,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(5, field);
    // Index for the Leader Board entry selected as the default race participant
    let field = FieldInfo {
        name: "default_race_leader",
        field_type: FieldDataType::UInt8,
        def_number: 6,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(6, field);
    // Indicates if any segments should be deleted
    let field = FieldInfo {
        name: "delete_status",
        field_type: FieldDataType::SegmentDeleteStatus,
        def_number: 7,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(7, field);
    // Indicates how the segment was selected to be sent to the device
    let field = FieldInfo {
        name: "selection_type",
        field_type: FieldDataType::SegmentSelectionType,
        def_number: 8,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(8, field);
    MessageInfo {
        name: "segment_id",
        global_message_number: MesgNum::SegmentId,
        fields,
    }
}
/// Unique Identification data for a segment file
Unique Identification data for a segment file
Unique Identification data for a segment file
pub fn segment_id_message() -> MessageInfo {
    let mut fields = HashMap::new();
    // Friendly name assigned to segment
    let field = FieldInfo {
        name: "name",
        field_type: FieldDataType::String,
        def_number: 0,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(0, field);
    // UUID of the segment
    let field = FieldInfo {
        name: "uuid",
        field_type: FieldDataType::String,
        def_number: 1,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(1, field);
    // Sport associated with the segment
    let field = FieldInfo {
        name: "sport",
        field_type: FieldDataType::Sport,
        def_number: 2,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(2, field);
    // Segment enabled for evaluation
    let field = FieldInfo {
        name: "enabled",
        field_type: FieldDataType::Bool,
        def_number: 3,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(3, field);
    // Primary key of the user that created the segment
    let field = FieldInfo {
        name: "user_profile_primary_key",
        field_type: FieldDataType::UInt32,
        def_number: 4,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(4, field);
    // ID of the device that created the segment
    let field = FieldInfo {
        name: "device_id",
        field_type: FieldDataType::UInt32,
        def_number: 5,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(5, field);
    // Index for the Leader Board entry selected as the default race participant
    let field = FieldInfo {
        name: "default_race_leader",
        field_type: FieldDataType::UInt8,
        def_number: 6,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(6, field);
    // Indicates if any segments should be deleted
    let field = FieldInfo {
        name: "delete_status",
        field_type: FieldDataType::SegmentDeleteStatus,
        def_number: 7,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(7, field);
    // Indicates how the segment was selected to be sent to the device
    let field = FieldInfo {
        name: "selection_type",
        field_type: FieldDataType::SegmentSelectionType,
        def_number: 8,
        scale: 1.000000,
        offset: 0.000000,
        units: "",
        accumulate: false,
        subfields: Vec::new(),
        components: Vec::new(),
    };
    fields.insert(8, field);
    MessageInfo {
        name: "segment_id",
        global_message_number: MesgNum::SegmentId,
        fields,
    }
}
pub fn segment_id_message ( ) -> MessageInfo { let mut fields = HashMap :: new ( ) ; // Friendly name assigned to segment let field = FieldInfo { name : " " , field_type : FieldDataType :: String , def_number : 0 , scale : 1.000000 , offset : 0.000000 , units : " " , accumulate : false , subfields : Vec :: new ( ) , components : Vec :: new ( ) , } ; fields . insert ( 0 , field ) ; // UUID of the segment let field = FieldInfo { name : " " , field_type : FieldDataType :: String , def_number : 1 , scale : 1.000000 , offset : 0.000000 , units : " " , accumulate : false , subfields : Vec :: new ( ) , components : Vec :: new ( ) , } ; fields . insert ( 1 , field ) ; // Sport associated with the segment let field = FieldInfo { name : " " , field_type : FieldDataType :: Sport , def_number : 2 , scale : 1.000000 , offset : 0.000000 , units : " " , accumulate : false , subfields : Vec :: new ( ) , components : Vec :: new ( ) , } ; fields . insert ( 2 , field ) ; // Segment enabled for evaluation let field = FieldInfo { name : " " , field_type : FieldDataType :: Bool , def_number : 3 , scale : 1.000000 , offset : 0.000000 , units : " " , accumulate : false , subfields : Vec :: new ( ) , components : Vec :: new ( ) , } ; fields . insert ( 3 , field ) ; // Primary key of the user that created the segment let field = FieldInfo { name : " " , field_type : FieldDataType :: UInt32 , def_number : 4 , scale : 1.000000 , offset : 0.000000 , units : " " , accumulate : false , subfields : Vec :: new ( ) , components : Vec :: new ( ) , } ; fields . insert ( 4 , field ) ; // ID of the device that created the segment let field = FieldInfo { name : " " , field_type : FieldDataType :: UInt32 , def_number : 5 , scale : 1.000000 , offset : 0.000000 , units : " " , accumulate : false , subfields : Vec :: new ( ) , components : Vec :: new ( ) , } ; fields . insert ( 5 , field ) ; // Index for the Leader Board entry selected as the default race participant let field = FieldInfo { name : " " , field_type : FieldDataType :: UInt8 , def_number : 6 , scale : 1.000000 , offset : 0.000000 , units : " " , accumulate : false , subfields : Vec :: new ( ) , components : Vec :: new ( ) , } ; fields . insert ( 6 , field ) ; // Indicates if any segments should be deleted let field = FieldInfo { name : " " , field_type : FieldDataType :: SegmentDeleteStatus , def_number : 7 , scale : 1.000000 , offset : 0.000000 , units : " " , accumulate : false , subfields : Vec :: new ( ) , components : Vec :: new ( ) , } ; fields . insert ( 7 , field ) ; // Indicates how the segment was selected to be sent to the device let field = FieldInfo { name : " " , field_type : FieldDataType :: SegmentSelectionType , def_number : 8 , scale : 1.000000 , offset : 0.000000 , units : " " , accumulate : false , subfields : Vec :: new ( ) , components : Vec :: new ( ) , } ; fields . insert ( 8 , field ) ; MessageInfo { name : " " , global_message_number : MesgNum :: SegmentId , fields , } }
Unique Identification data for a segment file
Unique Identification data for a segment file