Struct slack_hook::Field [−][src]
Fields are defined as an array, and hashes contained within it will be displayed in a table inside the message attachment.
Fields
title: String
Shown as a bold heading above the value text. It cannot contain markup and will be escaped for you.
value: SlackText
The 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.
Methods
impl Field
[src]
impl Field
pub fn new<S: Into<String>, ST: Into<SlackText>>(
title: S,
value: ST,
short: Option<bool>
) -> Field
[src]
pub fn new<S: Into<String>, ST: Into<SlackText>>(
title: S,
value: ST,
short: Option<bool>
) -> Field
Construct a new field
Trait Implementations
impl Debug for Field
[src]
impl Debug for Field
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Field
[src]
impl Clone for Field
fn clone(&self) -> Field
[src]
fn clone(&self) -> Field
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Field
[src]
impl PartialEq for Field