pub enum Endpoint {
    Report {
        preamble: String,
        text: String,
        dest_text: String,
        dest_url: String,
    },
    Instructional(String),
}
Expand description

The possible endpoint types (endpoints are sections that allow the user to exit the contribution process).

Variants

Report

Fields

preamble: String

The preamble text to display before the actual formatted report. Markdown can be used here.

text: String

The formatted report. The UI will not allow the user to edit this, but will provide a copy button. Interpolation of form values is allowed here with ${form_id} syntax. This should be written in the appropriate templating language for your issue reporting system (e.g. Markdown for GitHub issues), and will be displayed as a raw, pre-formatted string.

dest_text: String

The text of a button for sending teh user to wherever they’ll report the issue. This does not support Markdown.

dest_url: String

A URL to send the user to so that they can report the issue. If the platform supports interpolating text to be sent into the URL, you can do so by interpolating %s into this field.

A report endpoint, which gives the user a formatted report in Markdown to send to the project.

Instructional(String)

An instructional endpoint, which tells the user to do something. This supports Markdown.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.