[−][src]Struct block_kit::block::section::SectionBlock
A section is one of the most flexible blocks available.
- simple text
- multiple text fields
Element
accessory
Methods
impl SectionBlock
[src]
pub fn new(text: Text) -> Self
[src]
pub fn block_id(self, block_id: impl Into<String>) -> Self
[src]
pub fn fields(self, fields: Vec<Text>) -> Self
[src]
pub fn accessory(self, accessory: BlockElement) -> Self
[src]
Trait Implementations
impl Debug for SectionBlock
[src]
impl From<SectionBlock> for Block
[src]
fn from(block: SectionBlock) -> Self
[src]
impl Serialize for SectionBlock
[src]
Auto Trait Implementations
impl RefUnwindSafe for SectionBlock
impl Send for SectionBlock
impl Sync for SectionBlock
impl Unpin for SectionBlock
impl UnwindSafe for SectionBlock
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,