pub struct BadgeBuilder {
pub variant: Option<BadgeVariant>,
pub children: Option<Vec<NodeBlueprint>>,
pub class: Option<&'static str>,
pub __strata_key: Option<String>,
}Fields§
§variant: Option<BadgeVariant>§children: Option<Vec<NodeBlueprint>>§class: Option<&'static str>§__strata_key: Option<String>Implementations§
Source§impl BadgeBuilder
impl BadgeBuilder
pub fn variant(self, val: impl Into<Option<BadgeVariant>>) -> Self
pub fn children( self, val: impl IntoChildren<Option<Vec<NodeBlueprint>>>, ) -> Self
pub fn class(self, val: impl Into<Option<&'static str>>) -> Self
pub fn key(self, key: impl Display) -> Self
pub fn build(self) -> View
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BadgeBuilder
impl !Send for BadgeBuilder
impl !Sync for BadgeBuilder
impl !UnwindSafe for BadgeBuilder
impl Forget for BadgeBuilder
impl Freeze for BadgeBuilder
impl Move for BadgeBuilder
impl Unpin for BadgeBuilder
impl UnsafeUnpin for BadgeBuilder
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