pub struct RenderInput<'a> {
pub outcome: &'a FetchOutcome,
pub theme: &'a Theme,
pub format: &'a str,
pub tooltip_format: Option<&'a str>,
pub icon: Option<&'a str>,
pub pace_tolerance: u32,
pub format_pace_color: bool,
pub tooltip_pace_pts: bool,
pub now: DateTime<Utc>,
}Expand description
All inputs needed to render the widget — packaged so tests can construct it without any I/O.
Fields§
§outcome: &'a FetchOutcome§theme: &'a Theme§format: &'a str§tooltip_format: Option<&'a str>§icon: Option<&'a str>§pace_tolerance: u32§format_pace_color: bool§tooltip_pace_pts: bool§now: DateTime<Utc>Auto Trait Implementations§
impl<'a> Freeze for RenderInput<'a>
impl<'a> RefUnwindSafe for RenderInput<'a>
impl<'a> Send for RenderInput<'a>
impl<'a> Sync for RenderInput<'a>
impl<'a> Unpin for RenderInput<'a>
impl<'a> UnsafeUnpin for RenderInput<'a>
impl<'a> UnwindSafe for RenderInput<'a>
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> 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