pub struct ResponseDebugContext {
pub request_id: Option<String>,
pub cf_ray: Option<String>,
}Expand description
Correlation ids captured from a provider’s HTTP response headers.
Appended (one plain-text line) to the user-facing error message so bug
reports to the provider can quote them; deliberately NOT part of
Display, which feeds logs and try_extract_error_message.
Fields§
§request_id: Option<String>Provider request id: first present of x-request-id, request-id,
anthropic-request-id.
cf_ray: Option<String>Cloudflare ray id (cf-ray) — identifies the edge PoP + request for
providers fronted by Cloudflare.
Implementations§
Trait Implementations§
Source§impl Clone for ResponseDebugContext
impl Clone for ResponseDebugContext
Source§fn clone(&self) -> ResponseDebugContext
fn clone(&self) -> ResponseDebugContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResponseDebugContext
impl Debug for ResponseDebugContext
Source§impl Default for ResponseDebugContext
impl Default for ResponseDebugContext
Source§fn default() -> ResponseDebugContext
fn default() -> ResponseDebugContext
Returns the “default value” for a type. Read more
impl Eq for ResponseDebugContext
Source§impl PartialEq for ResponseDebugContext
impl PartialEq for ResponseDebugContext
impl StructuralPartialEq for ResponseDebugContext
Auto Trait Implementations§
impl Freeze for ResponseDebugContext
impl RefUnwindSafe for ResponseDebugContext
impl Send for ResponseDebugContext
impl Sync for ResponseDebugContext
impl Unpin for ResponseDebugContext
impl UnsafeUnpin for ResponseDebugContext
impl UnwindSafe for ResponseDebugContext
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