[][src]Struct google_clouderrorreporting1_beta1::ErrorContext

pub struct ErrorContext {
    pub http_request: Option<HttpRequestContext>,
    pub source_references: Option<Vec<SourceReference>>,
    pub report_location: Option<SourceLocation>,
    pub user: Option<String>,
}

A description of the context in which an error occurred. This data should be provided by the application when reporting an error, unless the error report has been generated automatically from Google App Engine logs.

This type is not used in any activity, and only used as part of another schema.

Fields

http_request: Option<HttpRequestContext>

The HTTP request which was processed when the error was triggered.

source_references: Option<Vec<SourceReference>>

Source code that was used to build the executable which has caused the given error message.

report_location: Option<SourceLocation>

The location in the source code where the decision was made to report the error, usually the place where it was logged. For a logged exception this would be the source line where the exception is logged, usually close to the place where it was caught.

user: Option<String>

The user who caused or was affected by the crash. This can be a user ID, an email address, or an arbitrary token that uniquely identifies the user. When sending an error report, leave this field empty if the user was not logged in. In this case the Error Reporting system will use other data, such as remote IP address, to distinguish affected users. See affected_users_count in ErrorGroupStats.

Trait Implementations

impl Part for ErrorContext[src]

impl Default for ErrorContext[src]

impl Clone for ErrorContext[src]

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

Performs copy-assignment from source. Read more

impl Debug for ErrorContext[src]

impl Serialize for ErrorContext[src]

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

Auto Trait Implementations

Blanket Implementations

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> Into<U> for T where
    U: From<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> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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