slack_webhook_client/schema

Types

pub type Accessory {
  Accessory(
    alt_text: option.Option(String),
    image_url: option.Option(String),
    type_: option.Option(String),
  )
}

Constructors

pub type Block {
  Block(
    accessory: option.Option(Accessory),
    block_id: option.Option(String),
    fields: option.Option(List(TextObject)),
    text: option.Option(TextObject),
    type_: String,
  )
}

Constructors

pub type SlackMessage {
  SlackMessage(
    blocks: option.Option(List(Block)),
    text: option.Option(String),
  )
}

Constructors

pub type TextObject {
  TextObject(
    text: option.Option(String),
    type_: option.Option(String),
  )
}

Constructors

Values

pub fn accessory_decoder() -> decode.Decoder(Accessory)
pub fn accessory_encode(data: Accessory) -> json.Json
pub fn block_decoder() -> decode.Decoder(Block)
pub fn block_encode(data: Block) -> json.Json
pub fn slack_message_decoder() -> decode.Decoder(SlackMessage)
pub fn slack_message_encode(data: SlackMessage) -> json.Json
pub fn text_object_decoder() -> decode.Decoder(TextObject)
pub fn text_object_encode(data: TextObject) -> json.Json
Search Document