pub struct BrandPropsBuilder<__active = active> { /* private fields */ }Expand description
Typestate builder for BrandProps, created by BrandProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<__active> BrandPropsBuilder<__active>
impl<__active> BrandPropsBuilder<__active>
Sourcepub fn active(self, active: String) -> BrandPropsBuilder<Set>
pub fn active(self, active: String) -> BrandPropsBuilder<Set>
Sets the active property.
Sourcepub fn build(self) -> BrandPropswhere
__active: IsSet,
pub fn build(self) -> BrandPropswhere
__active: IsSet,
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<__active> Freeze for BrandPropsBuilder<__active>
impl<__active> RefUnwindSafe for BrandPropsBuilder<__active>
impl<__active> Send for BrandPropsBuilder<__active>
impl<__active> Sync for BrandPropsBuilder<__active>
impl<__active> Unpin for BrandPropsBuilder<__active>
impl<__active> UnsafeUnpin for BrandPropsBuilder<__active>
impl<__active> UnwindSafe for BrandPropsBuilder<__active>
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