pub struct SectionBlockBuilder {
pub text: Option<TextBlockObject>,
pub block_id: Option<String>,
pub fields: Option<Vec<TextBlockObject>>,
pub accessory: Option<BlockElement>,
}Fields§
§text: Option<TextBlockObject>§block_id: Option<String>§fields: Option<Vec<TextBlockObject>>§accessory: Option<BlockElement>Implementations§
Source§impl SectionBlockBuilder
impl SectionBlockBuilder
pub fn new() -> SectionBlockBuilder
pub fn text(self, text: TextBlockObject) -> SectionBlockBuilder
pub fn block_id(self, block_id: String) -> SectionBlockBuilder
pub fn fields(self, fields: Vec<TextBlockObject>) -> SectionBlockBuilder
pub fn accessory(self, accessory: BlockElement) -> SectionBlockBuilder
pub fn build(self) -> SectionBlock
Trait Implementations§
Source§impl Debug for SectionBlockBuilder
impl Debug for SectionBlockBuilder
Source§impl Default for SectionBlockBuilder
impl Default for SectionBlockBuilder
Source§fn default() -> SectionBlockBuilder
fn default() -> SectionBlockBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SectionBlockBuilder
impl RefUnwindSafe for SectionBlockBuilder
impl Send for SectionBlockBuilder
impl Sync for SectionBlockBuilder
impl Unpin for SectionBlockBuilder
impl UnwindSafe for SectionBlockBuilder
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