pub struct SectionBlock {
pub text: Option<TextBlockObject>,
pub block_id: Option<String>,
pub fields: Option<Vec<TextBlockObject>>,
pub accessory: Option<BlockElement>,
}Expand description
A section is one of the most flexible blocks available.
See: https://api.slack.com/reference/block-kit/blocks#section
Fields§
§text: Option<TextBlockObject>§block_id: Option<String>§fields: Option<Vec<TextBlockObject>>§accessory: Option<BlockElement>Implementations§
Source§impl SectionBlock
impl SectionBlock
pub fn builder() -> SectionBlockBuilder
Trait Implementations§
Source§impl Debug for SectionBlock
impl Debug for SectionBlock
Source§impl Default for SectionBlock
impl Default for SectionBlock
Source§fn default() -> SectionBlock
fn default() -> SectionBlock
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SectionBlock
impl<'de> Deserialize<'de> for SectionBlock
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 PartialEq for SectionBlock
impl PartialEq for SectionBlock
Source§impl Serialize for SectionBlock
impl Serialize for SectionBlock
impl StructuralPartialEq for SectionBlock
Auto Trait Implementations§
impl Freeze for SectionBlock
impl RefUnwindSafe for SectionBlock
impl Send for SectionBlock
impl Sync for SectionBlock
impl Unpin for SectionBlock
impl UnwindSafe for SectionBlock
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