pub struct Field {
pub title: String,
pub value: SlackText,
pub short: Option<bool>,
}Expand description
Fields are defined as an array, and hashes contained within it will be displayed in a table inside the message attachment.
Fields§
§title: StringShown as a bold heading above the value text. It cannot contain markup and will be escaped for you.
value: SlackTextThe text value of the field. It may contain standard message markup and must be escaped as normal. May be multi-line.
short: Option<bool>An optional flag indicating whether the value is short enough to be displayed side-by-side with other values.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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