pub struct AlertBlock {
pub text: TextObject,
pub level: Option<AlertLevel>,
pub block_id: Option<String>,
/* private fields */
}Expand description
A block that shows an alert, warning or informational message (modals only). https://docs.slack.dev/reference/block-kit/blocks/alert-block
Fields§
§text: TextObject§level: Option<AlertLevel>§block_id: Option<String>Implementations§
Source§impl AlertBlock
impl AlertBlock
Trait Implementations§
Source§impl Clone for AlertBlock
impl Clone for AlertBlock
Source§impl Debug for AlertBlock
impl Debug for AlertBlock
Source§impl<'de> Deserialize<'de> for AlertBlock
impl<'de> Deserialize<'de> for AlertBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AlertBlock> for Block
impl From<AlertBlock> for Block
Source§fn from(value: AlertBlock) -> Self
fn from(value: AlertBlock) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AlertBlock
impl PartialEq for AlertBlock
Source§impl Serialize for AlertBlock
impl Serialize for AlertBlock
impl StructuralPartialEq for AlertBlock
Auto Trait Implementations§
impl Freeze for AlertBlock
impl RefUnwindSafe for AlertBlock
impl Send for AlertBlock
impl Sync for AlertBlock
impl Unpin for AlertBlock
impl UnsafeUnpin for AlertBlock
impl UnwindSafe for AlertBlock
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