Struct google_clouderrorreporting1_beta1::ErrorContext [−][src]
pub struct ErrorContext { pub http_request: Option<HttpRequestContext>, pub source_references: Option<Vec<SourceReference>>, pub user: Option<String>, pub report_location: Option<SourceLocation>, }
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.
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
.
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.
Trait Implementations
impl Default for ErrorContext
[src]
impl Default for ErrorContext
fn default() -> ErrorContext
[src]
fn default() -> ErrorContext
Returns the "default value" for a type. Read more
impl Clone for ErrorContext
[src]
impl Clone for ErrorContext
fn clone(&self) -> ErrorContext
[src]
fn clone(&self) -> ErrorContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ErrorContext
[src]
impl Debug for ErrorContext
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for ErrorContext
[src]
impl Part for ErrorContext
Auto Trait Implementations
impl Send for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Sync for ErrorContext