pub struct SectionBlock {
pub text: Option<TextObject>,
pub block_id: Option<BlockId>,
pub fields: Vec<TextObject>,
pub accessory: Option<Element>,
}Expand description
Section block.
Fields§
§text: Option<TextObject>The text for the block, in the form of a text object.
block_id: Option<BlockId>A unique identifier for a block.
fields: Vec<TextObject>Required if no text is provided.
accessory: Option<Element>One of the compatible element objects noted above.
Trait Implementations§
Source§impl Clone for SectionBlock
impl Clone for SectionBlock
Source§fn clone(&self) -> SectionBlock
fn clone(&self) -> SectionBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 Serialize for SectionBlock
impl Serialize for SectionBlock
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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