Struct libhealth::plugins::weight::WeightPlugin
source · pub struct WeightPlugin;
Implementations§
source§impl WeightPlugin
impl WeightPlugin
Trait Implementations§
source§impl Clone for WeightPlugin
impl Clone for WeightPlugin
source§fn clone(&self) -> WeightPlugin
fn clone(&self) -> WeightPlugin
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WeightPlugin
impl Debug for WeightPlugin
source§impl Plugin for WeightPlugin
impl Plugin for WeightPlugin
source§fn details(&self, mocked: bool) -> PluginDetails
fn details(&self, mocked: bool) -> PluginDetails
Returns a card view containing details,e.g. steps over some weeks. May be mocked via the
is-mocked
property.source§fn name(&self) -> PluginName
fn name(&self) -> PluginName
The non-localised name of the plugin, used as ID. !Must! be unique across plugins
source§fn icon_name(&self) -> &'static str
fn icon_name(&self) -> &'static str
The name of the icon that should be used for the overview row
source§fn localised_name(&self) -> String
fn localised_name(&self) -> String
The localised name of the plugin, that’s displayed to the user.
source§fn summary(&self) -> PluginSummaryRow
fn summary(&self) -> PluginSummaryRow
Returns a card view with a short overview of the data, e.g 2000/10000 steps done for the home page
source§fn overview(&self) -> PluginOverviewRow
fn overview(&self) -> PluginOverviewRow
Returns an entry for the “browse all” listbox.
Auto Trait Implementations§
impl RefUnwindSafe for WeightPlugin
impl Send for WeightPlugin
impl Sync for WeightPlugin
impl Unpin for WeightPlugin
impl UnwindSafe for WeightPlugin
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> 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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
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