pub struct SummaryCardsPropsBuilder<__total = total, __currency = currency> { /* 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<__total, __currency> SummaryCardsPropsBuilder<__total, __currency>
impl<__total, __currency> SummaryCardsPropsBuilder<__total, __currency>
Sourcepub fn total(self, total: Summary) -> SummaryCardsPropsBuilder<Set, __currency>
pub fn total(self, total: Summary) -> SummaryCardsPropsBuilder<Set, __currency>
Sets the total property.
Sourcepub fn currency(
self,
currency: Currency,
) -> SummaryCardsPropsBuilder<__total, Set>
pub fn currency( self, currency: Currency, ) -> SummaryCardsPropsBuilder<__total, Set>
Sets the currency property.
Sourcepub fn build(self) -> SummaryCardsProps
pub fn build(self) -> SummaryCardsProps
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<__total, __currency> Freeze for SummaryCardsPropsBuilder<__total, __currency>
impl<__total, __currency> RefUnwindSafe for SummaryCardsPropsBuilder<__total, __currency>
impl<__total, __currency> Send for SummaryCardsPropsBuilder<__total, __currency>
impl<__total, __currency> Sync for SummaryCardsPropsBuilder<__total, __currency>
impl<__total, __currency> Unpin for SummaryCardsPropsBuilder<__total, __currency>
impl<__total, __currency> UnsafeUnpin for SummaryCardsPropsBuilder<__total, __currency>
impl<__total, __currency> UnwindSafe for SummaryCardsPropsBuilder<__total, __currency>
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