pub struct Settings {
Show 15 fields pub background: ListGradient, pub visual_split_count: usize, pub split_preview_count: usize, pub show_thin_separators: bool, pub separator_last_split: bool, pub always_show_last_split: bool, pub fill_with_blank_space: bool, pub display_two_rows: bool, pub current_split_gradient: Gradient, pub split_time_accuracy: Accuracy, pub segment_time_accuracy: Accuracy, pub delta_time_accuracy: Accuracy, pub delta_drop_decimals: bool, pub show_column_labels: bool, pub columns: Vec<ColumnSettings>,
}
Expand description

The Settings for this component.

Fields§

§background: ListGradient

The background shown behind the splits.

§visual_split_count: usize

The amount of segments to show in the list at any given time. If this is set to 0, all the segments are shown. If this is set to a number lower than the total amount of segments, only a certain window of all the segments is shown. This window can scroll up or down.

§split_preview_count: usize

If there’s more segments than segments that are shown, the window showing the segments automatically scrolls up and down when the current segment changes. This count determines the minimum number of future segments to be shown in this scrolling window when it automatically scrolls.

§show_thin_separators: bool

Specifies whether thin separators should be shown between the individual segments shown by the component.

§separator_last_split: bool

If the last segment is to always be shown, this determines whether to show a more pronounced separator in front of the last segment, if it is not directly adjacent to the segment shown right before it in the scrolling window.

§always_show_last_split: bool

If not every segment is shown in the scrolling window of segments, then this determines whether the final segment is always to be shown, as it contains valuable information about the total duration of the chosen comparison, which is often the runner’s Personal Best.

§fill_with_blank_space: bool

If there’s not enough segments to fill the list of splits, this option allows filling the remaining splits with blank space in order to maintain the visual split count specified. Otherwise the visual split count is reduced to the actual amount of segments.

§display_two_rows: bool

Specifies whether to display each split as two rows, with the segment name being in one row and the times being in the other.

§current_split_gradient: Gradient

The gradient to show behind the current segment as an indicator of it being the current segment.

§split_time_accuracy: Accuracy

Specifies the display accuracy of split times.

§segment_time_accuracy: Accuracy

Specifies the display accuracy of segment times.

§delta_time_accuracy: Accuracy

Specifies the display accuracy of delta times.

§delta_drop_decimals: bool

Whether to drop the fractional part of a delta time once it goes past one minute.

§show_column_labels: bool

Specifies whether to show the names of the columns above the splits.

§columns: Vec<ColumnSettings>

The columns to show on the splits. These can be configured in various way to show split times, segment times, deltas and so on. The columns are defined from right to left.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. 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
Converts self into T using Into<T>. Read more
Causes self to use its Binary implementation when Debug-formatted.
Causes self to use its Display implementation when Debug-formatted.
Causes self to use its LowerExp implementation when Debug-formatted.
Causes self to use its LowerHex implementation when Debug-formatted.
Causes self to use its Octal implementation when Debug-formatted.
Causes self to use its Pointer implementation when Debug-formatted.
Causes self to use its UpperExp implementation when Debug-formatted.
Causes self to use its UpperHex implementation when Debug-formatted.
Formats each item in a sequence. Read more

Returns the argument unchanged.

Query the “status” flags for the self file descriptor.
Create a new SetFdFlags value for use with set_fd_flags. Read more
Set the “status” flags for the self file descriptor. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Pipes by value. This is generally the method you want to use. Read more
Borrows self and passes that borrow into the pipe function. Read more
Mutably borrows self and passes that borrow into the pipe function. Read more
Borrows self, then passes self.borrow() into the pipe function. Read more
Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Borrows self, then passes self.as_ref() into the pipe function.
Mutably borrows self, then passes self.as_mut() into the pipe function.
Borrows self, then passes self.deref() into the pipe function.
Mutably borrows self, then passes self.deref_mut() into the pipe function.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Immutable access to a value. Read more
Mutable access to a value. Read more
Immutable access to the Borrow<B> of a value. Read more
Mutable access to the BorrowMut<B> of a value. Read more
Immutable access to the AsRef<R> view of a value. Read more
Mutable access to the AsMut<R> view of a value. Read more
Immutable access to the Deref::Target of a value. Read more
Mutable access to the Deref::Target of a value. Read more
Calls .tap() only in debug builds, and is erased in release builds.
Calls .tap_mut() only in debug builds, and is erased in release builds.
Calls .tap_borrow() only in debug builds, and is erased in release builds.
Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Calls .tap_ref() only in debug builds, and is erased in release builds.
Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Calls .tap_deref() only in debug builds, and is erased in release builds.
Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Attempts to convert self into T using TryInto<T>. Read more
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more