#[non_exhaustive]pub struct RequestInfo {
pub request_id: String,
pub serving_data: String,
}Expand description
Contains metadata about the request that clients can attach when filing a bug or providing other forms of feedback.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.request_id: StringAn opaque string that should only be interpreted by the service generating it. For example, it can be used to identify requests in the service’s logs.
serving_data: StringAny data that was used to serve this request. For example, an encrypted stack trace that can be sent back to the service provider for debugging.
Implementations§
Source§impl RequestInfo
impl RequestInfo
Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
Sourcepub fn set_serving_data<T: Into<String>>(self, v: T) -> Self
pub fn set_serving_data<T: Into<String>>(self, v: T) -> Self
Sets the value of serving_data.
Trait Implementations§
Source§impl Clone for RequestInfo
impl Clone for RequestInfo
Source§fn clone(&self) -> RequestInfo
fn clone(&self) -> RequestInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestInfo
impl Debug for RequestInfo
Source§impl Default for RequestInfo
impl Default for RequestInfo
Source§fn default() -> RequestInfo
fn default() -> RequestInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RequestInfowhere
RequestInfo: Default,
impl<'de> Deserialize<'de> for RequestInfowhere
RequestInfo: Default,
Source§fn 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
Source§impl PartialEq for RequestInfo
impl PartialEq for RequestInfo
Source§impl Serialize for RequestInfo
impl Serialize for RequestInfo
impl StructuralPartialEq for RequestInfo
Auto Trait Implementations§
impl Freeze for RequestInfo
impl RefUnwindSafe for RequestInfo
impl Send for RequestInfo
impl Sync for RequestInfo
impl Unpin for RequestInfo
impl UnwindSafe for RequestInfo
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
Mutably borrows from an owned value. Read more