pub struct ErrorLog {
pub service_context: Option<ServiceContext>,
pub context: Option<ErrorContext>,
pub message: String,
pub status: Option<Status>,
pub request_payload: Option<Struct>,
pub response_payload: Option<Struct>,
pub import_payload: Option<ImportErrorContext>,
}
Expand description
An error log which is reported to the Error Reporting system. This proto a superset of google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.
Fields§
§service_context: Option<ServiceContext>
The service context in which this error has occurred.
context: Option<ErrorContext>
A description of the context in which the error occurred.
message: String
A message describing the error.
status: Option<Status>
The RPC status associated with the error log.
request_payload: Option<Struct>
The API request payload, represented as a protocol buffer.
Most API request types are supported. For example:
“type.googleapis.com/google.cloud.retail.v2.ProductService.CreateProductRequest” “type.googleapis.com/google.cloud.retail.v2.UserEventService.WriteUserEventRequest”
response_payload: Option<Struct>
The API response payload, represented as a protocol buffer.
This is used to log some “soft errors”, where the response is valid but we consider there are some quality issues like unjoined events.
The following API responses are supported and no PII is included: “google.cloud.retail.v2.PredictionService.Predict” “google.cloud.retail.v2.UserEventService.WriteUserEvent” “google.cloud.retail.v2.UserEventService.CollectUserEvent”
import_payload: Option<ImportErrorContext>
The error payload that is populated on LRO import APIs.
Trait Implementations§
source§impl Message for ErrorLog
impl Message for ErrorLog
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ErrorLog
impl PartialEq for ErrorLog
impl StructuralPartialEq for ErrorLog
Auto Trait Implementations§
impl Freeze for ErrorLog
impl RefUnwindSafe for ErrorLog
impl Send for ErrorLog
impl Sync for ErrorLog
impl Unpin for ErrorLog
impl UnwindSafe for ErrorLog
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request