pub struct BarsChartPropsBuilder<'__a, __bars = bars, __metric = metric, __base = base, __sel = sel, __animate = animate, __click = click> { /* private fields */ }Expand description
Typestate builder for BarsChartProps, created by BarsChartProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<'__a, __bars, __metric, __base, __sel, __animate, __click> BarsChartPropsBuilder<'__a, __bars, __metric, __base, __sel, __animate, __click>
impl<'__a, __bars, __metric, __base, __sel, __animate, __click> BarsChartPropsBuilder<'__a, __bars, __metric, __base, __sel, __animate, __click>
Sourcepub fn bars(
self,
bars: &'__a Bars,
) -> BarsChartPropsBuilder<'__a, Set, __metric, __base, __sel, __animate, __click>
pub fn bars( self, bars: &'__a Bars, ) -> BarsChartPropsBuilder<'__a, Set, __metric, __base, __sel, __animate, __click>
Sets the bars property.
Sourcepub fn metric(
self,
metric: Metric,
) -> BarsChartPropsBuilder<'__a, __bars, Set, __base, __sel, __animate, __click>
pub fn metric( self, metric: Metric, ) -> BarsChartPropsBuilder<'__a, __bars, Set, __base, __sel, __animate, __click>
Sets the metric property.
Sourcepub fn base(
self,
base: &'__a str,
) -> BarsChartPropsBuilder<'__a, __bars, __metric, Set, __sel, __animate, __click>
pub fn base( self, base: &'__a str, ) -> BarsChartPropsBuilder<'__a, __bars, __metric, Set, __sel, __animate, __click>
Sets the base property.
Sourcepub fn sel(
self,
sel: &'__a Selection,
) -> BarsChartPropsBuilder<'__a, __bars, __metric, __base, Set, __animate, __click>
pub fn sel( self, sel: &'__a Selection, ) -> BarsChartPropsBuilder<'__a, __bars, __metric, __base, Set, __animate, __click>
Sets the sel property.
Sourcepub fn animate(
self,
animate: bool,
) -> BarsChartPropsBuilder<'__a, __bars, __metric, __base, __sel, Set, __click>
pub fn animate( self, animate: bool, ) -> BarsChartPropsBuilder<'__a, __bars, __metric, __base, __sel, Set, __click>
Sets the animate property.
Sourcepub fn click(
self,
click: Option<&'__a Signal<String>>,
) -> BarsChartPropsBuilder<'__a, __bars, __metric, __base, __sel, __animate, Set>
pub fn click( self, click: Option<&'__a Signal<String>>, ) -> BarsChartPropsBuilder<'__a, __bars, __metric, __base, __sel, __animate, Set>
Sets the click property.
Sourcepub fn build(self) -> BarsChartProps<'__a>
pub fn build(self) -> BarsChartProps<'__a>
Builds the props struct from the set properties.
Only available once every required property has been set.
#[default] properties that were not set are filled with
Default::default(), or the #[default(expr)] expression.
Auto Trait Implementations§
impl<'__a, __bars, __metric, __base, __sel, __animate, __click> Freeze for BarsChartPropsBuilder<'__a, __bars, __metric, __base, __sel, __animate, __click>
impl<'__a, __bars, __metric, __base, __sel, __animate, __click> RefUnwindSafe for BarsChartPropsBuilder<'__a, __bars, __metric, __base, __sel, __animate, __click>
impl<'__a, __bars, __metric, __base, __sel, __animate, __click> Send for BarsChartPropsBuilder<'__a, __bars, __metric, __base, __sel, __animate, __click>
impl<'__a, __bars, __metric, __base, __sel, __animate, __click> Sync for BarsChartPropsBuilder<'__a, __bars, __metric, __base, __sel, __animate, __click>
impl<'__a, __bars, __metric, __base, __sel, __animate, __click> Unpin for BarsChartPropsBuilder<'__a, __bars, __metric, __base, __sel, __animate, __click>
impl<'__a, __bars, __metric, __base, __sel, __animate, __click> UnsafeUnpin for BarsChartPropsBuilder<'__a, __bars, __metric, __base, __sel, __animate, __click>
impl<'__a, __bars, __metric, __base, __sel, __animate, __click> UnwindSafe for BarsChartPropsBuilder<'__a, __bars, __metric, __base, __sel, __animate, __click>
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