pub struct StatBuilder {
pub label: Option<&'static str>,
pub value: Option<&'static str>,
pub trend: Option<f32>,
pub subtitle: Option<&'static str>,
pub class: Option<&'static str>,
pub children: Option<Vec<NodeBlueprint>>,
pub __strata_key: Option<String>,
}Fields§
§label: Option<&'static str>§value: Option<&'static str>§trend: Option<f32>§subtitle: Option<&'static str>§class: Option<&'static str>§children: Option<Vec<NodeBlueprint>>§__strata_key: Option<String>Implementations§
Source§impl StatBuilder
impl StatBuilder
pub fn label(self, val: impl Into<&'static str>) -> Self
pub fn value(self, val: impl Into<&'static str>) -> Self
pub fn trend(self, val: impl Into<Option<f32>>) -> Self
pub fn subtitle(self, val: impl Into<Option<&'static str>>) -> Self
pub fn class(self, val: impl Into<Option<&'static str>>) -> Self
pub fn children(self, children: Vec<NodeBlueprint>) -> Self
pub fn key(self, key: impl Display) -> Self
pub fn build(self) -> View
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StatBuilder
impl !Send for StatBuilder
impl !Sync for StatBuilder
impl !UnwindSafe for StatBuilder
impl Forget for StatBuilder
impl Freeze for StatBuilder
impl Move for StatBuilder
impl Unpin for StatBuilder
impl UnsafeUnpin for StatBuilder
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