pub struct ButtonPropsBuilder { /* private fields */ }Implementations§
Source§impl ButtonPropsBuilder
impl ButtonPropsBuilder
pub fn variant(self, val: ButtonVariant) -> Self
pub fn size(self, val: ButtonSize) -> Self
pub fn class(self, val: impl Into<Option<Cow<'static, str>>>) -> Self
pub fn attrs(self, val: AttrMap) -> Self
pub fn children(self, val: Children) -> Self
pub fn build(self) -> ButtonProps
Trait Implementations§
Source§impl From<ButtonPropsBuilder> for ButtonProps
impl From<ButtonPropsBuilder> for ButtonProps
Source§fn from(b: ButtonPropsBuilder) -> Self
fn from(b: ButtonPropsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ButtonPropsBuilder
impl RefUnwindSafe for ButtonPropsBuilder
impl Send for ButtonPropsBuilder
impl Sync for ButtonPropsBuilder
impl Unpin for ButtonPropsBuilder
impl UnsafeUnpin for ButtonPropsBuilder
impl UnwindSafe for ButtonPropsBuilder
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