pub struct ContextActionsBlock { /* private fields */ }Expand description
A row of feedback or icon buttons, usually shown below AI-generated content.
Implementations§
Source§impl ContextActionsBlock
impl ContextActionsBlock
Sourcepub fn builder() -> ContextActionsBlockBuilder
pub fn builder() -> ContextActionsBlockBuilder
Starts a builder with the documented model defaults.
Sourcepub fn into_builder(self) -> ContextActionsBlockBuilder
pub fn into_builder(self) -> ContextActionsBlockBuilder
Moves every field into an editable builder, preserving explicit omissions.
Sourcepub fn elements(&self) -> &[ContextActionsElement]
pub fn elements(&self) -> &[ContextActionsElement]
Borrows or copies elements. Adds feedback buttons or icon buttons in display order.
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 ContextActionsBlock
impl Clone for ContextActionsBlock
Source§impl Debug for ContextActionsBlock
impl Debug for ContextActionsBlock
Source§impl<'de> Deserialize<'de> for ContextActionsBlock
impl<'de> Deserialize<'de> for ContextActionsBlock
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<ContextActionsBlock> for Block
impl From<ContextActionsBlock> for Block
Source§fn from(value: ContextActionsBlock) -> Self
fn from(value: ContextActionsBlock) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ContextActionsBlock
impl PartialEq for ContextActionsBlock
Source§impl Serialize for ContextActionsBlock
impl Serialize for ContextActionsBlock
impl StructuralPartialEq for ContextActionsBlock
Source§impl TryFrom<Value> for ContextActionsBlock
impl TryFrom<Value> for ContextActionsBlock
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for ContextActionsBlock
impl Freeze for ContextActionsBlock
impl Move for ContextActionsBlock
impl RefUnwindSafe for ContextActionsBlock
impl Send for ContextActionsBlock
impl Sync for ContextActionsBlock
impl Unpin for ContextActionsBlock
impl UnsafeUnpin for ContextActionsBlock
impl UnwindSafe for ContextActionsBlock
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