pub struct LimitsPanelPropsBuilder<'__a, __check = check, __currency = currency> { /* private fields */ }Expand description
Typestate builder for LimitsPanelProps, created by LimitsPanelProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<'__a, __check, __currency> LimitsPanelPropsBuilder<'__a, __check, __currency>
impl<'__a, __check, __currency> LimitsPanelPropsBuilder<'__a, __check, __currency>
Sourcepub fn check(
self,
check: &'__a LimitCheck,
) -> LimitsPanelPropsBuilder<'__a, Set, __currency>
pub fn check( self, check: &'__a LimitCheck, ) -> LimitsPanelPropsBuilder<'__a, Set, __currency>
Sets the check property.
Sourcepub fn currency(
self,
currency: Currency,
) -> LimitsPanelPropsBuilder<'__a, __check, Set>
pub fn currency( self, currency: Currency, ) -> LimitsPanelPropsBuilder<'__a, __check, Set>
Sets the currency property.
Sourcepub fn build(self) -> LimitsPanelProps<'__a>
pub fn build(self) -> LimitsPanelProps<'__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, __check, __currency> Freeze for LimitsPanelPropsBuilder<'__a, __check, __currency>
impl<'__a, __check, __currency> RefUnwindSafe for LimitsPanelPropsBuilder<'__a, __check, __currency>
impl<'__a, __check, __currency> Send for LimitsPanelPropsBuilder<'__a, __check, __currency>
impl<'__a, __check, __currency> Sync for LimitsPanelPropsBuilder<'__a, __check, __currency>
impl<'__a, __check, __currency> Unpin for LimitsPanelPropsBuilder<'__a, __check, __currency>
impl<'__a, __check, __currency> UnsafeUnpin for LimitsPanelPropsBuilder<'__a, __check, __currency>
impl<'__a, __check, __currency> UnwindSafe for LimitsPanelPropsBuilder<'__a, __check, __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