pub struct SavingsPanelProps<'__a> {
pub savings: &'__a Savings,
pub currency: Currency,
pub spent_usd: f64,
pub input_price: f64,
pub buckets: &'__a [BucketSavings],
pub noun: &'__a str,
}Expand description
What prompt caching, rtk and pi compaction saved, per source. Renders nothing when nothing was saved.
Fields§
§savings: &'__a Savings§currency: Currency§spent_usd: f64§input_price: f64§buckets: &'__a [BucketSavings]§noun: &'__a strImplementations§
Source§impl<'__a> SavingsPanelProps<'__a>
impl<'__a> SavingsPanelProps<'__a>
Sourcepub fn builder() -> SavingsPanelPropsBuilder<'__a, savings, currency, spent_usd, input_price, buckets, noun>
pub fn builder() -> SavingsPanelPropsBuilder<'__a, savings, currency, spent_usd, input_price, buckets, noun>
Returns a SavingsPanelPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl<'__a> Freeze for SavingsPanelProps<'__a>
impl<'__a> RefUnwindSafe for SavingsPanelProps<'__a>
impl<'__a> Send for SavingsPanelProps<'__a>
impl<'__a> Sync for SavingsPanelProps<'__a>
impl<'__a> Unpin for SavingsPanelProps<'__a>
impl<'__a> UnsafeUnpin for SavingsPanelProps<'__a>
impl<'__a> UnwindSafe for SavingsPanelProps<'__a>
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