[][src]Struct debugserver_types::Message

pub struct Message {
    pub format: String,
    pub id: i64,
    pub send_telemetry: Option<bool>,
    pub show_user: Option<bool>,
    pub url: Option<String>,
    pub url_label: Option<String>,
    pub variables: Option<BTreeMap<String, String>>,
}

A structured message object. Used to return errors from requests.

Fields

format: String

A format string for the message. Embedded variables have the form '{name}'. If variable name starts with an underscore character, the variable does not contain user data (PII) and can be safely used for telemetry purposes.

id: i64

Unique identifier for the message.

send_telemetry: Option<bool>

If true send to telemetry.

show_user: Option<bool>

If true show user.

url: Option<String>

An optional url where additional information about this message can be found.

url_label: Option<String>

An optional label that is presented to the user as the UI for opening the url.

variables: Option<BTreeMap<String, String>>

An object used as a dictionary for looking up the variables in the format string.

Trait Implementations

impl PartialEq<Message> for Message[src]

impl Clone for Message[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Message[src]

impl Serialize for Message[src]

impl<'de> Deserialize<'de> for Message[src]

Auto Trait Implementations

impl Sync for Message

impl Send for Message

impl Unpin for Message

impl RefUnwindSafe for Message

impl UnwindSafe for Message

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]