pub struct DisplayPrefs {
pub display_limit: Option<f64>,
pub headline: Headline,
}Expand description
Per-vendor bar-number settings, resolved from config for one tab.
The default is the quota-vendor shape — no user denominator, percent on the bar — so a vendor that never opts in is unaffected.
Fields§
§display_limit: Option<f64>[vendor] display_limit: the user’s tank size, if they stated one.
headline: Headline[vendor] headline.
Implementations§
Trait Implementations§
Source§impl Clone for DisplayPrefs
impl Clone for DisplayPrefs
impl Copy for DisplayPrefs
Source§impl Debug for DisplayPrefs
impl Debug for DisplayPrefs
Source§impl Default for DisplayPrefs
impl Default for DisplayPrefs
Source§impl PartialEq for DisplayPrefs
impl PartialEq for DisplayPrefs
impl StructuralPartialEq for DisplayPrefs
Auto Trait Implementations§
impl Freeze for DisplayPrefs
impl RefUnwindSafe for DisplayPrefs
impl Send for DisplayPrefs
impl Sync for DisplayPrefs
impl Unpin for DisplayPrefs
impl UnsafeUnpin for DisplayPrefs
impl UnwindSafe for DisplayPrefs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more