pub struct SummaryCardsPropsBuilder<'__a, __metric = metric, __total = total, __currency = currency, __savings = savings> { /* private fields */ }Expand description
Typestate builder for SummaryCardsProps, created by SummaryCardsProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<'__a, __metric, __total, __currency, __savings> SummaryCardsPropsBuilder<'__a, __metric, __total, __currency, __savings>
impl<'__a, __metric, __total, __currency, __savings> SummaryCardsPropsBuilder<'__a, __metric, __total, __currency, __savings>
Sourcepub fn metric(
self,
metric: Metric,
) -> SummaryCardsPropsBuilder<'__a, Set, __total, __currency, __savings>
pub fn metric( self, metric: Metric, ) -> SummaryCardsPropsBuilder<'__a, Set, __total, __currency, __savings>
Sets the metric property.
Sourcepub fn total(
self,
total: Summary,
) -> SummaryCardsPropsBuilder<'__a, __metric, Set, __currency, __savings>
pub fn total( self, total: Summary, ) -> SummaryCardsPropsBuilder<'__a, __metric, Set, __currency, __savings>
Sets the total property.
Sourcepub fn currency(
self,
currency: Currency,
) -> SummaryCardsPropsBuilder<'__a, __metric, __total, Set, __savings>
pub fn currency( self, currency: Currency, ) -> SummaryCardsPropsBuilder<'__a, __metric, __total, Set, __savings>
Sets the currency property.
Sourcepub fn savings(
self,
savings: &'__a Savings,
) -> SummaryCardsPropsBuilder<'__a, __metric, __total, __currency, Set>
pub fn savings( self, savings: &'__a Savings, ) -> SummaryCardsPropsBuilder<'__a, __metric, __total, __currency, Set>
Sets the savings property.
Sourcepub fn build(self) -> SummaryCardsProps<'__a>
pub fn build(self) -> SummaryCardsProps<'__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, __metric, __total, __currency, __savings> Freeze for SummaryCardsPropsBuilder<'__a, __metric, __total, __currency, __savings>
impl<'__a, __metric, __total, __currency, __savings> RefUnwindSafe for SummaryCardsPropsBuilder<'__a, __metric, __total, __currency, __savings>
impl<'__a, __metric, __total, __currency, __savings> Send for SummaryCardsPropsBuilder<'__a, __metric, __total, __currency, __savings>
impl<'__a, __metric, __total, __currency, __savings> Sync for SummaryCardsPropsBuilder<'__a, __metric, __total, __currency, __savings>
impl<'__a, __metric, __total, __currency, __savings> Unpin for SummaryCardsPropsBuilder<'__a, __metric, __total, __currency, __savings>
impl<'__a, __metric, __total, __currency, __savings> UnsafeUnpin for SummaryCardsPropsBuilder<'__a, __metric, __total, __currency, __savings>
impl<'__a, __metric, __total, __currency, __savings> UnwindSafe for SummaryCardsPropsBuilder<'__a, __metric, __total, __currency, __savings>
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