pub struct AlertBuilder { /* private fields */ }Expand description
Builder for Alert object.
Implementations§
Source§impl AlertBuilder
impl AlertBuilder
Sourcepub fn get_text(&self) -> Option<&TextContent>
pub fn get_text(&self) -> Option<&TextContent>
get text field value.
Sourcepub fn set_text(self, value: Option<impl Into<TextContent>>) -> Self
pub fn set_text(self, value: Option<impl Into<TextContent>>) -> Self
set text field value.
Sourcepub fn text(self, value: impl Into<TextContent>) -> Self
pub fn text(self, value: impl Into<TextContent>) -> Self
set text field value.
Sourcepub fn get_level(&self) -> Option<&AlertLevel>
pub fn get_level(&self) -> Option<&AlertLevel>
get level field value.
Sourcepub fn set_level(self, value: Option<impl Into<AlertLevel>>) -> Self
pub fn set_level(self, value: Option<impl Into<AlertLevel>>) -> Self
set level field value.
Sourcepub fn level(self, value: impl Into<AlertLevel>) -> Self
pub fn level(self, value: impl Into<AlertLevel>) -> Self
set level field value.
Sourcepub fn get_block_id(&self) -> Option<&String>
pub fn get_block_id(&self) -> Option<&String>
get block_id field value.
Sourcepub fn set_block_id(self, value: Option<impl Into<String>>) -> Self
pub fn set_block_id(self, value: Option<impl Into<String>>) -> Self
set block_id field value.
Trait Implementations§
Source§impl Debug for AlertBuilder
impl Debug for AlertBuilder
Auto Trait Implementations§
impl Freeze for AlertBuilder
impl RefUnwindSafe for AlertBuilder
impl Send for AlertBuilder
impl Sync for AlertBuilder
impl Unpin for AlertBuilder
impl UnsafeUnpin for AlertBuilder
impl UnwindSafe 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