pub struct CardBlock {
pub block_id: Option<String>,
pub hero_image: Option<ImageElement>,
pub icon: Option<ImageElement>,
pub title: Option<TextObject>,
pub subtitle: Option<TextObject>,
pub body: Option<TextObject>,
pub actions: Vec<ButtonElement>,
pub slack_icon: Option<SlackIcon>,
pub subtext: Option<TextObject>,
/* private fields */
}Expand description
Fields§
§block_id: Option<String>§hero_image: Option<ImageElement>§icon: Option<ImageElement>§title: Option<TextObject>§subtitle: Option<TextObject>§body: Option<TextObject>§actions: Vec<ButtonElement>§slack_icon: Option<SlackIcon>§subtext: Option<TextObject>Implementations§
Source§impl CardBlock
impl CardBlock
pub fn new() -> Self
pub fn block_id(self, block_id: impl Into<String>) -> Self
pub fn hero_image(self, hero_image: ImageElement) -> Self
pub fn icon(self, icon: ImageElement) -> Self
pub fn title(self, title: impl Into<TextObject>) -> Self
pub fn subtitle(self, subtitle: impl Into<TextObject>) -> Self
pub fn body(self, body: impl Into<TextObject>) -> Self
pub fn actions(self, actions: Vec<ButtonElement>) -> Self
pub fn slack_icon(self, slack_icon: SlackIcon) -> Self
pub fn subtext(self, subtext: impl Into<TextObject>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CardBlock
impl<'de> Deserialize<'de> for CardBlock
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
impl StructuralPartialEq for CardBlock
Auto Trait Implementations§
impl Freeze for CardBlock
impl RefUnwindSafe for CardBlock
impl Send for CardBlock
impl Sync for CardBlock
impl Unpin for CardBlock
impl UnsafeUnpin for CardBlock
impl UnwindSafe for CardBlock
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