Enum tribble_app::parser::Endpoint
source · [−]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: StringThe preamble text to display before the actual formatted report. Markdown can be used here.
text: StringThe 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: StringThe text of a button for sending teh user to wherever they’ll report the issue. This does not support Markdown.
dest_url: StringA 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
sourceimpl<'de> Deserialize<'de> for Endpoint
impl<'de> Deserialize<'de> for Endpoint
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more