Struct Message

Source
pub struct Message {
    pub header: u8,
    pub num: MesgNum,
    pub fields: Vec<Field>,
    pub developer_fields: Vec<DeveloperField>,
}
Expand description

Message is a FIT protocol message containing the data defined in the Message Definition

Fields§

§header: u8

Message Header serves to distinguish whether the message is a Normal Data or a Compressed Timestamp Data. Unlike MessageDefinition, Message’s Header should not contain Developer Data Flag.

§num: MesgNum

Global Message Number defined in Global FIT Profile, except number within range 0xFF00 - 0xFFFE are manufacturer specific number.

§fields: Vec<Field>

List of Field

§developer_fields: Vec<DeveloperField>

List of DeveloperField

Implementations§

Source§

impl Message

Source

pub fn sub_field_substitution<'a>( &self, field_ref: &FieldReference<'a>, ) -> Option<&'a SubField<'a>>

SubFieldSubstitution returns any sub-field that can substitute the properties interpretation of the parent Field (Dynamic Field).

Trait Implementations§

Source§

impl Clone for Message

Source§

fn clone(&self) -> Message

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Message

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Message

Source§

fn default() -> Message

Returns the “default value” for a type. Read more
Source§

impl From<&Message> for AadAccelFeatures

Source§

fn from(mesg: &Message) -> Self

from creates new AadAccelFeatures struct based on given mesg.

Source§

impl From<&Message> for AccelerometerData

Source§

fn from(mesg: &Message) -> Self

from creates new AccelerometerData struct based on given mesg.

Source§

impl From<&Message> for Activity

Source§

fn from(mesg: &Message) -> Self

from creates new Activity struct based on given mesg.

Source§

impl From<&Message> for AntChannelId

Source§

fn from(mesg: &Message) -> Self

from creates new AntChannelId struct based on given mesg.

Source§

impl From<&Message> for AntRx

Source§

fn from(mesg: &Message) -> Self

from creates new AntRx struct based on given mesg.

Source§

impl From<&Message> for AntTx

Source§

fn from(mesg: &Message) -> Self

from creates new AntTx struct based on given mesg.

Source§

impl From<&Message> for AviationAttitude

Source§

fn from(mesg: &Message) -> Self

from creates new AviationAttitude struct based on given mesg.

Source§

impl From<&Message> for BarometerData

Source§

fn from(mesg: &Message) -> Self

from creates new BarometerData struct based on given mesg.

Source§

impl From<&Message> for BeatIntervals

Source§

fn from(mesg: &Message) -> Self

from creates new BeatIntervals struct based on given mesg.

Source§

impl From<&Message> for BikeProfile

Source§

fn from(mesg: &Message) -> Self

from creates new BikeProfile struct based on given mesg.

Source§

impl From<&Message> for BloodPressure

Source§

fn from(mesg: &Message) -> Self

from creates new BloodPressure struct based on given mesg.

Source§

impl From<&Message> for CadenceZone

Source§

fn from(mesg: &Message) -> Self

from creates new CadenceZone struct based on given mesg.

Source§

impl From<&Message> for CameraEvent

Source§

fn from(mesg: &Message) -> Self

from creates new CameraEvent struct based on given mesg.

Source§

impl From<&Message> for Capabilities

Source§

fn from(mesg: &Message) -> Self

from creates new Capabilities struct based on given mesg.

Source§

impl From<&Message> for ChronoShotData

Source§

fn from(mesg: &Message) -> Self

from creates new ChronoShotData struct based on given mesg.

Source§

impl From<&Message> for ChronoShotSession

Source§

fn from(mesg: &Message) -> Self

from creates new ChronoShotSession struct based on given mesg.

Source§

impl From<&Message> for ClimbPro

Source§

fn from(mesg: &Message) -> Self

from creates new ClimbPro struct based on given mesg.

Source§

impl From<&Message> for Connectivity

Source§

fn from(mesg: &Message) -> Self

from creates new Connectivity struct based on given mesg.

Source§

impl From<&Message> for Course

Source§

fn from(mesg: &Message) -> Self

from creates new Course struct based on given mesg.

Source§

impl From<&Message> for CoursePoint

Source§

fn from(mesg: &Message) -> Self

from creates new CoursePoint struct based on given mesg.

Source§

impl From<&Message> for DeveloperDataId

Source§

fn from(mesg: &Message) -> Self

from creates new DeveloperDataId struct based on given mesg.

Source§

impl From<&Message> for DeviceAuxBatteryInfo

Source§

fn from(mesg: &Message) -> Self

from creates new DeviceAuxBatteryInfo struct based on given mesg.

Source§

impl From<&Message> for DeviceInfo

Source§

fn from(mesg: &Message) -> Self

from creates new DeviceInfo struct based on given mesg.

Source§

impl From<&Message> for DeviceSettings

Source§

fn from(mesg: &Message) -> Self

from creates new DeviceSettings struct based on given mesg.

Source§

impl From<&Message> for DiveAlarm

Source§

fn from(mesg: &Message) -> Self

from creates new DiveAlarm struct based on given mesg.

Source§

impl From<&Message> for DiveApneaAlarm

Source§

fn from(mesg: &Message) -> Self

from creates new DiveApneaAlarm struct based on given mesg.

Source§

impl From<&Message> for DiveGas

Source§

fn from(mesg: &Message) -> Self

from creates new DiveGas struct based on given mesg.

Source§

impl From<&Message> for DiveSettings

Source§

fn from(mesg: &Message) -> Self

from creates new DiveSettings struct based on given mesg.

Source§

impl From<&Message> for DiveSummary

Source§

fn from(mesg: &Message) -> Self

from creates new DiveSummary struct based on given mesg.

Source§

impl From<&Message> for Event

Source§

fn from(mesg: &Message) -> Self

from creates new Event struct based on given mesg.

Source§

impl From<&Message> for ExdDataConceptConfiguration

Source§

fn from(mesg: &Message) -> Self

from creates new ExdDataConceptConfiguration struct based on given mesg.

Source§

impl From<&Message> for ExdDataFieldConfiguration

Source§

fn from(mesg: &Message) -> Self

from creates new ExdDataFieldConfiguration struct based on given mesg.

Source§

impl From<&Message> for ExdScreenConfiguration

Source§

fn from(mesg: &Message) -> Self

from creates new ExdScreenConfiguration struct based on given mesg.

Source§

impl From<&Message> for ExerciseTitle

Source§

fn from(mesg: &Message) -> Self

from creates new ExerciseTitle struct based on given mesg.

Source§

impl From<&Message> for FieldCapabilities

Source§

fn from(mesg: &Message) -> Self

from creates new FieldCapabilities struct based on given mesg.

Source§

impl From<&Message> for FieldDescription

Source§

fn from(mesg: &Message) -> Self

from creates new FieldDescription struct based on given mesg.

Source§

impl From<&Message> for FileCapabilities

Source§

fn from(mesg: &Message) -> Self

from creates new FileCapabilities struct based on given mesg.

Source§

impl From<&Message> for FileCreator

Source§

fn from(mesg: &Message) -> Self

from creates new FileCreator struct based on given mesg.

Source§

impl From<&Message> for FileId

Source§

fn from(mesg: &Message) -> Self

from creates new FileId struct based on given mesg.

Source§

impl From<&Message> for Goal

Source§

fn from(mesg: &Message) -> Self

from creates new Goal struct based on given mesg.

Source§

impl From<&Message> for GpsMetadata

Source§

fn from(mesg: &Message) -> Self

from creates new GpsMetadata struct based on given mesg.

Source§

impl From<&Message> for GyroscopeData

Source§

fn from(mesg: &Message) -> Self

from creates new GyroscopeData struct based on given mesg.

Source§

impl From<&Message> for Hr

Source§

fn from(mesg: &Message) -> Self

from creates new Hr struct based on given mesg.

Source§

impl From<&Message> for HrZone

Source§

fn from(mesg: &Message) -> Self

from creates new HrZone struct based on given mesg.

Source§

impl From<&Message> for HrmProfile

Source§

fn from(mesg: &Message) -> Self

from creates new HrmProfile struct based on given mesg.

Source§

impl From<&Message> for Hrv

Source§

fn from(mesg: &Message) -> Self

from creates new Hrv struct based on given mesg.

Source§

impl From<&Message> for HrvStatusSummary

Source§

fn from(mesg: &Message) -> Self

from creates new HrvStatusSummary struct based on given mesg.

Source§

impl From<&Message> for HrvValue

Source§

fn from(mesg: &Message) -> Self

from creates new HrvValue struct based on given mesg.

Source§

impl From<&Message> for HsaAccelerometerData

Source§

fn from(mesg: &Message) -> Self

from creates new HsaAccelerometerData struct based on given mesg.

Source§

impl From<&Message> for HsaBodyBatteryData

Source§

fn from(mesg: &Message) -> Self

from creates new HsaBodyBatteryData struct based on given mesg.

Source§

impl From<&Message> for HsaConfigurationData

Source§

fn from(mesg: &Message) -> Self

from creates new HsaConfigurationData struct based on given mesg.

Source§

impl From<&Message> for HsaEvent

Source§

fn from(mesg: &Message) -> Self

from creates new HsaEvent struct based on given mesg.

Source§

impl From<&Message> for HsaGyroscopeData

Source§

fn from(mesg: &Message) -> Self

from creates new HsaGyroscopeData struct based on given mesg.

Source§

impl From<&Message> for HsaHeartRateData

Source§

fn from(mesg: &Message) -> Self

from creates new HsaHeartRateData struct based on given mesg.

Source§

impl From<&Message> for HsaRespirationData

Source§

fn from(mesg: &Message) -> Self

from creates new HsaRespirationData struct based on given mesg.

Source§

impl From<&Message> for HsaSpo2Data

Source§

fn from(mesg: &Message) -> Self

from creates new HsaSpo2Data struct based on given mesg.

Source§

impl From<&Message> for HsaStepData

Source§

fn from(mesg: &Message) -> Self

from creates new HsaStepData struct based on given mesg.

Source§

impl From<&Message> for HsaStressData

Source§

fn from(mesg: &Message) -> Self

from creates new HsaStressData struct based on given mesg.

Source§

impl From<&Message> for HsaWristTemperatureData

Source§

fn from(mesg: &Message) -> Self

from creates new HsaWristTemperatureData struct based on given mesg.

Source§

impl From<&Message> for Jump

Source§

fn from(mesg: &Message) -> Self

from creates new Jump struct based on given mesg.

Source§

impl From<&Message> for Lap

Source§

fn from(mesg: &Message) -> Self

from creates new Lap struct based on given mesg.

Source§

impl From<&Message> for Length

Source§

fn from(mesg: &Message) -> Self

from creates new Length struct based on given mesg.

Source§

impl From<&Message> for MagnetometerData

Source§

fn from(mesg: &Message) -> Self

from creates new MagnetometerData struct based on given mesg.

Source§

impl From<&Message> for MaxMetData

Source§

fn from(mesg: &Message) -> Self

from creates new MaxMetData struct based on given mesg.

Source§

impl From<&Message> for MemoGlob

Source§

fn from(mesg: &Message) -> Self

from creates new MemoGlob struct based on given mesg.

Source§

impl From<&Message> for MesgCapabilities

Source§

fn from(mesg: &Message) -> Self

from creates new MesgCapabilities struct based on given mesg.

Source§

impl From<&Message> for MetZone

Source§

fn from(mesg: &Message) -> Self

from creates new MetZone struct based on given mesg.

Source§

impl From<&Message> for Monitoring

Source§

fn from(mesg: &Message) -> Self

from creates new Monitoring struct based on given mesg.

Source§

impl From<&Message> for MonitoringHrData

Source§

fn from(mesg: &Message) -> Self

from creates new MonitoringHrData struct based on given mesg.

Source§

impl From<&Message> for MonitoringInfo

Source§

fn from(mesg: &Message) -> Self

from creates new MonitoringInfo struct based on given mesg.

Source§

impl From<&Message> for NmeaSentence

Source§

fn from(mesg: &Message) -> Self

from creates new NmeaSentence struct based on given mesg.

Source§

impl From<&Message> for ObdiiData

Source§

fn from(mesg: &Message) -> Self

from creates new ObdiiData struct based on given mesg.

Source§

impl From<&Message> for OhrSettings

Source§

fn from(mesg: &Message) -> Self

from creates new OhrSettings struct based on given mesg.

Source§

impl From<&Message> for OneDSensorCalibration

Source§

fn from(mesg: &Message) -> Self

from creates new OneDSensorCalibration struct based on given mesg.

Source§

impl From<&Message> for PowerZone

Source§

fn from(mesg: &Message) -> Self

from creates new PowerZone struct based on given mesg.

Source§

impl From<&Message> for RawBbi

Source§

fn from(mesg: &Message) -> Self

from creates new RawBbi struct based on given mesg.

Source§

impl From<&Message> for Record

Source§

fn from(mesg: &Message) -> Self

from creates new Record struct based on given mesg.

Source§

impl From<&Message> for RespirationRate

Source§

fn from(mesg: &Message) -> Self

from creates new RespirationRate struct based on given mesg.

Source§

impl From<&Message> for Schedule

Source§

fn from(mesg: &Message) -> Self

from creates new Schedule struct based on given mesg.

Source§

impl From<&Message> for SdmProfile

Source§

fn from(mesg: &Message) -> Self

from creates new SdmProfile struct based on given mesg.

Source§

impl From<&Message> for SegmentFile

Source§

fn from(mesg: &Message) -> Self

from creates new SegmentFile struct based on given mesg.

Source§

impl From<&Message> for SegmentId

Source§

fn from(mesg: &Message) -> Self

from creates new SegmentId struct based on given mesg.

Source§

impl From<&Message> for SegmentLap

Source§

fn from(mesg: &Message) -> Self

from creates new SegmentLap struct based on given mesg.

Source§

impl From<&Message> for SegmentLeaderboardEntry

Source§

fn from(mesg: &Message) -> Self

from creates new SegmentLeaderboardEntry struct based on given mesg.

Source§

impl From<&Message> for SegmentPoint

Source§

fn from(mesg: &Message) -> Self

from creates new SegmentPoint struct based on given mesg.

Source§

impl From<&Message> for Session

Source§

fn from(mesg: &Message) -> Self

from creates new Session struct based on given mesg.

Source§

impl From<&Message> for Set

Source§

fn from(mesg: &Message) -> Self

from creates new Set struct based on given mesg.

Source§

impl From<&Message> for SkinTempOvernight

Source§

fn from(mesg: &Message) -> Self

from creates new SkinTempOvernight struct based on given mesg.

Source§

impl From<&Message> for SlaveDevice

Source§

fn from(mesg: &Message) -> Self

from creates new SlaveDevice struct based on given mesg.

Source§

impl From<&Message> for SleepAssessment

Source§

fn from(mesg: &Message) -> Self

from creates new SleepAssessment struct based on given mesg.

Source§

impl From<&Message> for SleepLevel

Source§

fn from(mesg: &Message) -> Self

from creates new SleepLevel struct based on given mesg.

Source§

impl From<&Message> for Software

Source§

fn from(mesg: &Message) -> Self

from creates new Software struct based on given mesg.

Source§

impl From<&Message> for SpeedZone

Source§

fn from(mesg: &Message) -> Self

from creates new SpeedZone struct based on given mesg.

Source§

impl From<&Message> for Split

Source§

fn from(mesg: &Message) -> Self

from creates new Split struct based on given mesg.

Source§

impl From<&Message> for SplitSummary

Source§

fn from(mesg: &Message) -> Self

from creates new SplitSummary struct based on given mesg.

Source§

impl From<&Message> for Spo2Data

Source§

fn from(mesg: &Message) -> Self

from creates new Spo2Data struct based on given mesg.

Source§

impl From<&Message> for Sport

Source§

fn from(mesg: &Message) -> Self

from creates new Sport struct based on given mesg.

Source§

impl From<&Message> for StressLevel

Source§

fn from(mesg: &Message) -> Self

from creates new StressLevel struct based on given mesg.

Source§

impl From<&Message> for TankSummary

Source§

fn from(mesg: &Message) -> Self

from creates new TankSummary struct based on given mesg.

Source§

impl From<&Message> for TankUpdate

Source§

fn from(mesg: &Message) -> Self

from creates new TankUpdate struct based on given mesg.

Source§

impl From<&Message> for ThreeDSensorCalibration

Source§

fn from(mesg: &Message) -> Self

from creates new ThreeDSensorCalibration struct based on given mesg.

Source§

impl From<&Message> for TimeInZone

Source§

fn from(mesg: &Message) -> Self

from creates new TimeInZone struct based on given mesg.

Source§

impl From<&Message> for TimestampCorrelation

Source§

fn from(mesg: &Message) -> Self

from creates new TimestampCorrelation struct based on given mesg.

Source§

impl From<&Message> for Totals

Source§

fn from(mesg: &Message) -> Self

from creates new Totals struct based on given mesg.

Source§

impl From<&Message> for TrainingFile

Source§

fn from(mesg: &Message) -> Self

from creates new TrainingFile struct based on given mesg.

Source§

impl From<&Message> for UserProfile

Source§

fn from(mesg: &Message) -> Self

from creates new UserProfile struct based on given mesg.

Source§

impl From<&Message> for Video

Source§

fn from(mesg: &Message) -> Self

from creates new Video struct based on given mesg.

Source§

impl From<&Message> for VideoClip

Source§

fn from(mesg: &Message) -> Self

from creates new VideoClip struct based on given mesg.

Source§

impl From<&Message> for VideoDescription

Source§

fn from(mesg: &Message) -> Self

from creates new VideoDescription struct based on given mesg.

Source§

impl From<&Message> for VideoFrame

Source§

fn from(mesg: &Message) -> Self

from creates new VideoFrame struct based on given mesg.

Source§

impl From<&Message> for VideoTitle

Source§

fn from(mesg: &Message) -> Self

from creates new VideoTitle struct based on given mesg.

Source§

impl From<&Message> for WatchfaceSettings

Source§

fn from(mesg: &Message) -> Self

from creates new WatchfaceSettings struct based on given mesg.

Source§

impl From<&Message> for WeatherAlert

Source§

fn from(mesg: &Message) -> Self

from creates new WeatherAlert struct based on given mesg.

Source§

impl From<&Message> for WeatherConditions

Source§

fn from(mesg: &Message) -> Self

from creates new WeatherConditions struct based on given mesg.

Source§

impl From<&Message> for WeightScale

Source§

fn from(mesg: &Message) -> Self

from creates new WeightScale struct based on given mesg.

Source§

impl From<&Message> for Workout

Source§

fn from(mesg: &Message) -> Self

from creates new Workout struct based on given mesg.

Source§

impl From<&Message> for WorkoutSession

Source§

fn from(mesg: &Message) -> Self

from creates new WorkoutSession struct based on given mesg.

Source§

impl From<&Message> for WorkoutStep

Source§

fn from(mesg: &Message) -> Self

from creates new WorkoutStep struct based on given mesg.

Source§

impl From<&Message> for ZonesTarget

Source§

fn from(mesg: &Message) -> Self

from creates new ZonesTarget struct based on given mesg.

Source§

impl From<AadAccelFeatures> for Message

Source§

fn from(m: AadAccelFeatures) -> Self

Converts to this type from the input type.
Source§

impl From<AccelerometerData> for Message

Source§

fn from(m: AccelerometerData) -> Self

Converts to this type from the input type.
Source§

impl From<Activity> for Message

Source§

fn from(m: Activity) -> Self

Converts to this type from the input type.
Source§

impl From<AntChannelId> for Message

Source§

fn from(m: AntChannelId) -> Self

Converts to this type from the input type.
Source§

impl From<AntRx> for Message

Source§

fn from(m: AntRx) -> Self

Converts to this type from the input type.
Source§

impl From<AntTx> for Message

Source§

fn from(m: AntTx) -> Self

Converts to this type from the input type.
Source§

impl From<AviationAttitude> for Message

Source§

fn from(m: AviationAttitude) -> Self

Converts to this type from the input type.
Source§

impl From<BarometerData> for Message

Source§

fn from(m: BarometerData) -> Self

Converts to this type from the input type.
Source§

impl From<BeatIntervals> for Message

Source§

fn from(m: BeatIntervals) -> Self

Converts to this type from the input type.
Source§

impl From<BikeProfile> for Message

Source§

fn from(m: BikeProfile) -> Self

Converts to this type from the input type.
Source§

impl From<BloodPressure> for Message

Source§

fn from(m: BloodPressure) -> Self

Converts to this type from the input type.
Source§

impl From<CadenceZone> for Message

Source§

fn from(m: CadenceZone) -> Self

Converts to this type from the input type.
Source§

impl From<CameraEvent> for Message

Source§

fn from(m: CameraEvent) -> Self

Converts to this type from the input type.
Source§

impl From<Capabilities> for Message

Source§

fn from(m: Capabilities) -> Self

Converts to this type from the input type.
Source§

impl From<ChronoShotData> for Message

Source§

fn from(m: ChronoShotData) -> Self

Converts to this type from the input type.
Source§

impl From<ChronoShotSession> for Message

Source§

fn from(m: ChronoShotSession) -> Self

Converts to this type from the input type.
Source§

impl From<ClimbPro> for Message

Source§

fn from(m: ClimbPro) -> Self

Converts to this type from the input type.
Source§

impl From<Connectivity> for Message

Source§

fn from(m: Connectivity) -> Self

Converts to this type from the input type.
Source§

impl From<Course> for Message

Source§

fn from(m: Course) -> Self

Converts to this type from the input type.
Source§

impl From<CoursePoint> for Message

Source§

fn from(m: CoursePoint) -> Self

Converts to this type from the input type.
Source§

impl From<DeveloperDataId> for Message

Source§

fn from(m: DeveloperDataId) -> Self

Converts to this type from the input type.
Source§

impl From<DeviceAuxBatteryInfo> for Message

Source§

fn from(m: DeviceAuxBatteryInfo) -> Self

Converts to this type from the input type.
Source§

impl From<DeviceInfo> for Message

Source§

fn from(m: DeviceInfo) -> Self

Converts to this type from the input type.
Source§

impl From<DeviceSettings> for Message

Source§

fn from(m: DeviceSettings) -> Self

Converts to this type from the input type.
Source§

impl From<DiveAlarm> for Message

Source§

fn from(m: DiveAlarm) -> Self

Converts to this type from the input type.
Source§

impl From<DiveApneaAlarm> for Message

Source§

fn from(m: DiveApneaAlarm) -> Self

Converts to this type from the input type.
Source§

impl From<DiveGas> for Message

Source§

fn from(m: DiveGas) -> Self

Converts to this type from the input type.
Source§

impl From<DiveSettings> for Message

Source§

fn from(m: DiveSettings) -> Self

Converts to this type from the input type.
Source§

impl From<DiveSummary> for Message

Source§

fn from(m: DiveSummary) -> Self

Converts to this type from the input type.
Source§

impl From<Event> for Message

Source§

fn from(m: Event) -> Self

Converts to this type from the input type.
Source§

impl From<ExdDataConceptConfiguration> for Message

Source§

fn from(m: ExdDataConceptConfiguration) -> Self

Converts to this type from the input type.
Source§

impl From<ExdDataFieldConfiguration> for Message

Source§

fn from(m: ExdDataFieldConfiguration) -> Self

Converts to this type from the input type.
Source§

impl From<ExdScreenConfiguration> for Message

Source§

fn from(m: ExdScreenConfiguration) -> Self

Converts to this type from the input type.
Source§

impl From<ExerciseTitle> for Message

Source§

fn from(m: ExerciseTitle) -> Self

Converts to this type from the input type.
Source§

impl From<FieldCapabilities> for Message

Source§

fn from(m: FieldCapabilities) -> Self

Converts to this type from the input type.
Source§

impl From<FieldDescription> for Message

Source§

fn from(m: FieldDescription) -> Self

Converts to this type from the input type.
Source§

impl From<FileCapabilities> for Message

Source§

fn from(m: FileCapabilities) -> Self

Converts to this type from the input type.
Source§

impl From<FileCreator> for Message

Source§

fn from(m: FileCreator) -> Self

Converts to this type from the input type.
Source§

impl From<FileId> for Message

Source§

fn from(m: FileId) -> Self

Converts to this type from the input type.
Source§

impl From<Goal> for Message

Source§

fn from(m: Goal) -> Self

Converts to this type from the input type.
Source§

impl From<GpsMetadata> for Message

Source§

fn from(m: GpsMetadata) -> Self

Converts to this type from the input type.
Source§

impl From<GyroscopeData> for Message

Source§

fn from(m: GyroscopeData) -> Self

Converts to this type from the input type.
Source§

impl From<Hr> for Message

Source§

fn from(m: Hr) -> Self

Converts to this type from the input type.
Source§

impl From<HrZone> for Message

Source§

fn from(m: HrZone) -> Self

Converts to this type from the input type.
Source§

impl From<HrmProfile> for Message

Source§

fn from(m: HrmProfile) -> Self

Converts to this type from the input type.
Source§

impl From<Hrv> for Message

Source§

fn from(m: Hrv) -> Self

Converts to this type from the input type.
Source§

impl From<HrvStatusSummary> for Message

Source§

fn from(m: HrvStatusSummary) -> Self

Converts to this type from the input type.
Source§

impl From<HrvValue> for Message

Source§

fn from(m: HrvValue) -> Self

Converts to this type from the input type.
Source§

impl From<HsaAccelerometerData> for Message

Source§

fn from(m: HsaAccelerometerData) -> Self

Converts to this type from the input type.
Source§

impl From<HsaBodyBatteryData> for Message

Source§

fn from(m: HsaBodyBatteryData) -> Self

Converts to this type from the input type.
Source§

impl From<HsaConfigurationData> for Message

Source§

fn from(m: HsaConfigurationData) -> Self

Converts to this type from the input type.
Source§

impl From<HsaEvent> for Message

Source§

fn from(m: HsaEvent) -> Self

Converts to this type from the input type.
Source§

impl From<HsaGyroscopeData> for Message

Source§

fn from(m: HsaGyroscopeData) -> Self

Converts to this type from the input type.
Source§

impl From<HsaHeartRateData> for Message

Source§

fn from(m: HsaHeartRateData) -> Self

Converts to this type from the input type.
Source§

impl From<HsaRespirationData> for Message

Source§

fn from(m: HsaRespirationData) -> Self

Converts to this type from the input type.
Source§

impl From<HsaSpo2Data> for Message

Source§

fn from(m: HsaSpo2Data) -> Self

Converts to this type from the input type.
Source§

impl From<HsaStepData> for Message

Source§

fn from(m: HsaStepData) -> Self

Converts to this type from the input type.
Source§

impl From<HsaStressData> for Message

Source§

fn from(m: HsaStressData) -> Self

Converts to this type from the input type.
Source§

impl From<HsaWristTemperatureData> for Message

Source§

fn from(m: HsaWristTemperatureData) -> Self

Converts to this type from the input type.
Source§

impl From<Jump> for Message

Source§

fn from(m: Jump) -> Self

Converts to this type from the input type.
Source§

impl From<Lap> for Message

Source§

fn from(m: Lap) -> Self

Converts to this type from the input type.
Source§

impl From<Length> for Message

Source§

fn from(m: Length) -> Self

Converts to this type from the input type.
Source§

impl From<MagnetometerData> for Message

Source§

fn from(m: MagnetometerData) -> Self

Converts to this type from the input type.
Source§

impl From<MaxMetData> for Message

Source§

fn from(m: MaxMetData) -> Self

Converts to this type from the input type.
Source§

impl From<MemoGlob> for Message

Source§

fn from(m: MemoGlob) -> Self

Converts to this type from the input type.
Source§

impl From<MesgCapabilities> for Message

Source§

fn from(m: MesgCapabilities) -> Self

Converts to this type from the input type.
Source§

impl From<MetZone> for Message

Source§

fn from(m: MetZone) -> Self

Converts to this type from the input type.
Source§

impl From<Monitoring> for Message

Source§

fn from(m: Monitoring) -> Self

Converts to this type from the input type.
Source§

impl From<MonitoringHrData> for Message

Source§

fn from(m: MonitoringHrData) -> Self

Converts to this type from the input type.
Source§

impl From<MonitoringInfo> for Message

Source§

fn from(m: MonitoringInfo) -> Self

Converts to this type from the input type.
Source§

impl From<NmeaSentence> for Message

Source§

fn from(m: NmeaSentence) -> Self

Converts to this type from the input type.
Source§

impl From<ObdiiData> for Message

Source§

fn from(m: ObdiiData) -> Self

Converts to this type from the input type.
Source§

impl From<OhrSettings> for Message

Source§

fn from(m: OhrSettings) -> Self

Converts to this type from the input type.
Source§

impl From<OneDSensorCalibration> for Message

Source§

fn from(m: OneDSensorCalibration) -> Self

Converts to this type from the input type.
Source§

impl From<PowerZone> for Message

Source§

fn from(m: PowerZone) -> Self

Converts to this type from the input type.
Source§

impl From<RawBbi> for Message

Source§

fn from(m: RawBbi) -> Self

Converts to this type from the input type.
Source§

impl From<Record> for Message

Source§

fn from(m: Record) -> Self

Converts to this type from the input type.
Source§

impl From<RespirationRate> for Message

Source§

fn from(m: RespirationRate) -> Self

Converts to this type from the input type.
Source§

impl From<Schedule> for Message

Source§

fn from(m: Schedule) -> Self

Converts to this type from the input type.
Source§

impl From<SdmProfile> for Message

Source§

fn from(m: SdmProfile) -> Self

Converts to this type from the input type.
Source§

impl From<SegmentFile> for Message

Source§

fn from(m: SegmentFile) -> Self

Converts to this type from the input type.
Source§

impl From<SegmentId> for Message

Source§

fn from(m: SegmentId) -> Self

Converts to this type from the input type.
Source§

impl From<SegmentLap> for Message

Source§

fn from(m: SegmentLap) -> Self

Converts to this type from the input type.
Source§

impl From<SegmentLeaderboardEntry> for Message

Source§

fn from(m: SegmentLeaderboardEntry) -> Self

Converts to this type from the input type.
Source§

impl From<SegmentPoint> for Message

Source§

fn from(m: SegmentPoint) -> Self

Converts to this type from the input type.
Source§

impl From<Session> for Message

Source§

fn from(m: Session) -> Self

Converts to this type from the input type.
Source§

impl From<Set> for Message

Source§

fn from(m: Set) -> Self

Converts to this type from the input type.
Source§

impl From<SkinTempOvernight> for Message

Source§

fn from(m: SkinTempOvernight) -> Self

Converts to this type from the input type.
Source§

impl From<SlaveDevice> for Message

Source§

fn from(m: SlaveDevice) -> Self

Converts to this type from the input type.
Source§

impl From<SleepAssessment> for Message

Source§

fn from(m: SleepAssessment) -> Self

Converts to this type from the input type.
Source§

impl From<SleepLevel> for Message

Source§

fn from(m: SleepLevel) -> Self

Converts to this type from the input type.
Source§

impl From<Software> for Message

Source§

fn from(m: Software) -> Self

Converts to this type from the input type.
Source§

impl From<SpeedZone> for Message

Source§

fn from(m: SpeedZone) -> Self

Converts to this type from the input type.
Source§

impl From<Split> for Message

Source§

fn from(m: Split) -> Self

Converts to this type from the input type.
Source§

impl From<SplitSummary> for Message

Source§

fn from(m: SplitSummary) -> Self

Converts to this type from the input type.
Source§

impl From<Spo2Data> for Message

Source§

fn from(m: Spo2Data) -> Self

Converts to this type from the input type.
Source§

impl From<Sport> for Message

Source§

fn from(m: Sport) -> Self

Converts to this type from the input type.
Source§

impl From<StressLevel> for Message

Source§

fn from(m: StressLevel) -> Self

Converts to this type from the input type.
Source§

impl From<TankSummary> for Message

Source§

fn from(m: TankSummary) -> Self

Converts to this type from the input type.
Source§

impl From<TankUpdate> for Message

Source§

fn from(m: TankUpdate) -> Self

Converts to this type from the input type.
Source§

impl From<ThreeDSensorCalibration> for Message

Source§

fn from(m: ThreeDSensorCalibration) -> Self

Converts to this type from the input type.
Source§

impl From<TimeInZone> for Message

Source§

fn from(m: TimeInZone) -> Self

Converts to this type from the input type.
Source§

impl From<TimestampCorrelation> for Message

Source§

fn from(m: TimestampCorrelation) -> Self

Converts to this type from the input type.
Source§

impl From<Totals> for Message

Source§

fn from(m: Totals) -> Self

Converts to this type from the input type.
Source§

impl From<TrainingFile> for Message

Source§

fn from(m: TrainingFile) -> Self

Converts to this type from the input type.
Source§

impl From<UserProfile> for Message

Source§

fn from(m: UserProfile) -> Self

Converts to this type from the input type.
Source§

impl From<Video> for Message

Source§

fn from(m: Video) -> Self

Converts to this type from the input type.
Source§

impl From<VideoClip> for Message

Source§

fn from(m: VideoClip) -> Self

Converts to this type from the input type.
Source§

impl From<VideoDescription> for Message

Source§

fn from(m: VideoDescription) -> Self

Converts to this type from the input type.
Source§

impl From<VideoFrame> for Message

Source§

fn from(m: VideoFrame) -> Self

Converts to this type from the input type.
Source§

impl From<VideoTitle> for Message

Source§

fn from(m: VideoTitle) -> Self

Converts to this type from the input type.
Source§

impl From<WatchfaceSettings> for Message

Source§

fn from(m: WatchfaceSettings) -> Self

Converts to this type from the input type.
Source§

impl From<WeatherAlert> for Message

Source§

fn from(m: WeatherAlert) -> Self

Converts to this type from the input type.
Source§

impl From<WeatherConditions> for Message

Source§

fn from(m: WeatherConditions) -> Self

Converts to this type from the input type.
Source§

impl From<WeightScale> for Message

Source§

fn from(m: WeightScale) -> Self

Converts to this type from the input type.
Source§

impl From<Workout> for Message

Source§

fn from(m: Workout) -> Self

Converts to this type from the input type.
Source§

impl From<WorkoutSession> for Message

Source§

fn from(m: WorkoutSession) -> Self

Converts to this type from the input type.
Source§

impl From<WorkoutStep> for Message

Source§

fn from(m: WorkoutStep) -> Self

Converts to this type from the input type.
Source§

impl From<ZonesTarget> for Message

Source§

fn from(m: ZonesTarget) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.