slack_webhook_client/schema
Types
pub type Accessory {
Accessory(
alt_text: option.Option(String),
image_url: option.Option(String),
type_: option.Option(String),
)
}
Constructors
-
Accessory( alt_text: option.Option(String), image_url: option.Option(String), type_: option.Option(String), )
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
-
Block( accessory: option.Option(Accessory), block_id: option.Option(String), fields: option.Option(List(TextObject)), text: option.Option(TextObject), type_: String, )
pub type SlackMessage {
SlackMessage(
blocks: option.Option(List(Block)),
text: option.Option(String),
)
}
Constructors
-
SlackMessage( blocks: option.Option(List(Block)), text: option.Option(String), )
pub type TextObject {
TextObject(
text: option.Option(String),
type_: option.Option(String),
)
}
Constructors
-
TextObject( text: option.Option(String), type_: option.Option(String), )
Values
pub fn accessory_decoder() -> decode.Decoder(Accessory)
pub fn block_decoder() -> decode.Decoder(Block)
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