pub struct AlertBuilder {
pub variant: Option<AlertVariant>,
pub title: Option<&'static str>,
pub description: Option<&'static str>,
pub children: Option<Vec<NodeBlueprint>>,
pub class: Option<&'static str>,
pub __strata_key: Option<String>,
}Fields§
§variant: Option<AlertVariant>§title: Option<&'static str>§description: Option<&'static str>§children: Option<Vec<NodeBlueprint>>§class: Option<&'static str>§__strata_key: Option<String>Implementations§
Source§impl AlertBuilder
impl AlertBuilder
pub fn variant(self, val: impl Into<Option<AlertVariant>>) -> Self
pub fn title(self, val: impl Into<&'static str>) -> Self
pub fn description(self, val: impl Into<Option<&'static str>>) -> 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 AlertBuilder
impl !Send for AlertBuilder
impl !Sync for AlertBuilder
impl !UnwindSafe for AlertBuilder
impl Forget for AlertBuilder
impl Freeze for AlertBuilder
impl Move for AlertBuilder
impl Unpin for AlertBuilder
impl UnsafeUnpin for AlertBuilder
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