Enum pagersduty::events::v1::Context [] [src]

pub enum Context {
    Link {
        href: String,
        text: Option<String>,
    },
    Image {
        src: String,
        href: Option<String>,
        alt: Option<String>,
    },
}

Variants

The link type is used to attach hyperlinks to an incident.

Fields of Link

The link being attached to the incident.

Plain text that describes the purpose of the link, and can be used as the link's text.

The image type is used to attach images to an incident. Images must be served via HTTPS.

Fields of Image

The source of the image being attached to the incident. This image must be served via HTTPS.

Optional link for the image.

Optional alternative text for the image.

Trait Implementations

impl Debug for Context
[src]

Formats the value using the given formatter.

impl PartialEq for Context
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.