pub struct HeaderBlock { /* private fields */ }Expand description
Large, bold plain text that introduces a group of blocks.
Implementations§
Source§impl HeaderBlock
impl HeaderBlock
Sourcepub fn builder() -> HeaderBlockBuilder
pub fn builder() -> HeaderBlockBuilder
Starts a builder with the documented model defaults.
Sourcepub fn into_builder(self) -> HeaderBlockBuilder
pub fn into_builder(self) -> HeaderBlockBuilder
Moves every field into an editable builder, preserving explicit omissions.
Sourcepub fn text(&self) -> &PlainText
pub fn text(&self) -> &PlainText
Borrows or copies text. Sets the header text, shown in a larger bold font.
Sourcepub fn block_id(&self) -> Option<&str>
pub fn block_id(&self) -> Option<&str>
Borrows or copies block_id. Sets a unique identifier for this block. Slack returns it in interaction payloads, so use a stable value when you need to find the block again.
Sourcepub fn extensions(&self) -> &Map<String, Value>
pub fn extensions(&self) -> &Map<String, Value>
Borrows checked, unmodeled JSON extension fields.
Trait Implementations§
Source§impl Clone for HeaderBlock
impl Clone for HeaderBlock
Source§impl Debug for HeaderBlock
impl Debug for HeaderBlock
Source§impl<'de> Deserialize<'de> for HeaderBlock
impl<'de> Deserialize<'de> for HeaderBlock
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<HeaderBlock> for Block
impl From<HeaderBlock> for Block
Source§fn from(value: HeaderBlock) -> Self
fn from(value: HeaderBlock) -> Self
Converts to this type from the input type.
Source§impl From<HeaderBlock> for LayoutChild
impl From<HeaderBlock> for LayoutChild
Source§fn from(value: HeaderBlock) -> Self
fn from(value: HeaderBlock) -> Self
Converts to this type from the input type.
Source§impl From<HeaderBlock> for LayoutFallback
impl From<HeaderBlock> for LayoutFallback
Source§fn from(value: HeaderBlock) -> Self
fn from(value: HeaderBlock) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HeaderBlock
impl PartialEq for HeaderBlock
Source§impl Serialize for HeaderBlock
impl Serialize for HeaderBlock
impl StructuralPartialEq for HeaderBlock
Source§impl TryFrom<Value> for HeaderBlock
impl TryFrom<Value> for HeaderBlock
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for HeaderBlock
impl Freeze for HeaderBlock
impl Move for HeaderBlock
impl RefUnwindSafe for HeaderBlock
impl Send for HeaderBlock
impl Sync for HeaderBlock
impl Unpin for HeaderBlock
impl UnsafeUnpin for HeaderBlock
impl UnwindSafe for HeaderBlock
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