pub struct TimerElement {
pub target_date: String,
pub counting: Option<TimerCounting>,
pub font_size: Option<f64>,
pub font_weight: Option<FontWeight>,
pub color: Option<ColorValue>,
pub style: ElementStyle,
}Expand description
Live countdown/countup timer that updates without timeline refresh.
Fields§
§target_date: StringISO 8601 target date.
counting: Option<TimerCounting>Count direction. Default: down.
font_size: Option<f64>Font size in points.
font_weight: Option<FontWeight>Font weight.
color: Option<ColorValue>Text color.
style: ElementStyleShared visual style (padding, background, frame, …).
Trait Implementations§
Source§impl Clone for TimerElement
impl Clone for TimerElement
Source§fn clone(&self) -> TimerElement
fn clone(&self) -> TimerElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimerElement
impl Debug for TimerElement
Source§impl Default for TimerElement
impl Default for TimerElement
Source§fn default() -> TimerElement
fn default() -> TimerElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimerElement
impl<'de> Deserialize<'de> for TimerElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TimerElement> for WidgetElement
impl From<TimerElement> for WidgetElement
Source§fn from(value: TimerElement) -> Self
fn from(value: TimerElement) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for TimerElement
impl JsonSchema for TimerElement
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for TimerElement
impl RefUnwindSafe for TimerElement
impl Send for TimerElement
impl Sync for TimerElement
impl Unpin for TimerElement
impl UnsafeUnpin for TimerElement
impl UnwindSafe for TimerElement
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