pub struct Options { /* private fields */ }Expand description
How a file is written.
Implementations§
Source§impl Options
impl Options
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Normal record headers, profile version 21.00, no time zone, sessions started by hand.
Sourcepub const fn auto_multisport(self, on: bool) -> Self
pub const fn auto_multisport(self, on: bool) -> Self
Whether a multisport profile moved the activity from each session to the next, as a
watch’s triathlon mode does, rather than its user. The activity’s type and each
session’s trigger say which; the last session’s trigger is the activity’s end.
Sourcepub const fn compressed_timestamps(self, on: bool) -> Self
pub const fn compressed_timestamps(self, on: bool) -> Self
Whether records less than 32 s after the previous timestamp put their time in the record header (FIT Protocol page, “Compressed Timestamp Header”). Off by default, as some readers refuse such headers.
Sourcepub const fn utc_offset(self, seconds: i32) -> Self
pub const fn utc_offset(self, seconds: i32) -> Self
The local time zone’s offset from UTC in seconds, so readers can show the activity’s local times. One that takes the end’s local time out of range is refused.
Sourcepub const fn profile_version(self, version: u16) -> Self
pub const fn profile_version(self, version: u16) -> Self
The profile version the header claims, as the header holds it: 2100 is 21.00.