pub struct SavingsPanelPropsBuilder<'__a, __savings = savings, __currency = currency, __spent_usd = spent_usd, __input_price = input_price, __buckets = buckets, __noun = noun> { /* private fields */ }Expand description
Typestate builder for SavingsPanelProps, created by SavingsPanelProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun> SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun>
impl<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun> SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun>
Sourcepub fn savings(
self,
savings: &'__a Savings,
) -> SavingsPanelPropsBuilder<'__a, Set, __currency, __spent_usd, __input_price, __buckets, __noun>
pub fn savings( self, savings: &'__a Savings, ) -> SavingsPanelPropsBuilder<'__a, Set, __currency, __spent_usd, __input_price, __buckets, __noun>
Sets the savings property.
Sourcepub fn currency(
self,
currency: Currency,
) -> SavingsPanelPropsBuilder<'__a, __savings, Set, __spent_usd, __input_price, __buckets, __noun>
pub fn currency( self, currency: Currency, ) -> SavingsPanelPropsBuilder<'__a, __savings, Set, __spent_usd, __input_price, __buckets, __noun>
Sets the currency property.
Sourcepub fn spent_usd(
self,
spent_usd: f64,
) -> SavingsPanelPropsBuilder<'__a, __savings, __currency, Set, __input_price, __buckets, __noun>
pub fn spent_usd( self, spent_usd: f64, ) -> SavingsPanelPropsBuilder<'__a, __savings, __currency, Set, __input_price, __buckets, __noun>
Sets the spent_usd property.
Sourcepub fn input_price(
self,
input_price: f64,
) -> SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, Set, __buckets, __noun>
pub fn input_price( self, input_price: f64, ) -> SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, Set, __buckets, __noun>
Sets the input_price property.
Sourcepub fn buckets(
self,
buckets: &'__a [BucketSavings],
) -> SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, __input_price, Set, __noun>
pub fn buckets( self, buckets: &'__a [BucketSavings], ) -> SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, __input_price, Set, __noun>
Sets the buckets property.
Sourcepub fn noun(
self,
noun: &'__a str,
) -> SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, Set>
pub fn noun( self, noun: &'__a str, ) -> SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, Set>
Sets the noun property.
Sourcepub fn build(self) -> SavingsPanelProps<'__a>
pub fn build(self) -> SavingsPanelProps<'__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, __savings, __currency, __spent_usd, __input_price, __buckets, __noun> Freeze for SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun>
impl<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun> RefUnwindSafe for SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun>
impl<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun> Send for SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun>
impl<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun> Sync for SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun>
impl<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun> Unpin for SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun>
impl<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun> UnsafeUnpin for SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun>
impl<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun> UnwindSafe for SavingsPanelPropsBuilder<'__a, __savings, __currency, __spent_usd, __input_price, __buckets, __noun>
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