pub struct SlackAnnounce {
pub enabled: Option<StringOrBool>,
pub webhook_url: Option<String>,
pub message_template: Option<String>,
pub channel: Option<String>,
pub username: Option<String>,
pub icon_emoji: Option<String>,
pub icon_url: Option<String>,
pub blocks: Option<Vec<SlackBlock>>,
pub attachments: Option<Vec<SlackAttachment>>,
}Fields§
§enabled: Option<StringOrBool>Enable Slack announcements (supports template expressions).
webhook_url: Option<String>Slack incoming webhook URL. Use template {{ Env.SLACK_WEBHOOK }} to reference an environment variable.
message_template: Option<String>Message template for the Slack post. Default: “{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}”
channel: Option<String>Override the webhook’s default channel (e.g. “#releases”).
username: Option<String>Override the webhook’s default username (e.g. “release-bot”).
icon_emoji: Option<String>Override the webhook’s default icon with an emoji (e.g. “:rocket:”).
icon_url: Option<String>Override the webhook’s default icon with an image URL.
blocks: Option<Vec<SlackBlock>>Slack Block Kit blocks (typed for schema validation).
attachments: Option<Vec<SlackAttachment>>Slack legacy attachments (typed for schema validation).
Trait Implementations§
Source§impl Clone for SlackAnnounce
impl Clone for SlackAnnounce
Source§fn clone(&self) -> SlackAnnounce
fn clone(&self) -> SlackAnnounce
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlackAnnounce
impl Debug for SlackAnnounce
Source§impl Default for SlackAnnounce
impl Default for SlackAnnounce
Source§fn default() -> SlackAnnounce
fn default() -> SlackAnnounce
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlackAnnouncewhere
SlackAnnounce: Default,
impl<'de> Deserialize<'de> for SlackAnnouncewhere
SlackAnnounce: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for SlackAnnounce
impl JsonSchema for SlackAnnounce
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SlackAnnounce
impl RefUnwindSafe for SlackAnnounce
impl Send for SlackAnnounce
impl Sync for SlackAnnounce
impl Unpin for SlackAnnounce
impl UnsafeUnpin for SlackAnnounce
impl UnwindSafe for SlackAnnounce
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