pub struct TransportLogEvent {
pub message: &'static str,
pub fields: BTreeMap<String, String>,
pub headers: Option<Vec<(String, String)>>,
pub body: Option<Vec<u8>>,
}Expand description
Structured debug event emitted by TransportLogger.
message and fields are the stable breadcrumb surface (method, url,
status, retry attempt). headers and body carry the raw, un-redacted
request or response payload when one is available; loggers that print these
(such as StderrTransportLogger) are
responsible for redacting sensitive headers.
Fields§
§message: &'static strEvent name such as http request or retrying request.
fields: BTreeMap<String, String>Stable event fields.
headers: Option<Vec<(String, String)>>Raw header name/value pairs for the request or response, when known.
body: Option<Vec<u8>>Raw request or response body bytes, when captured. Streaming and
byte-download responses omit this and report a body_bytes field
instead to avoid buffering large payloads into the log.
Trait Implementations§
Source§impl Clone for TransportLogEvent
impl Clone for TransportLogEvent
Source§fn clone(&self) -> TransportLogEvent
fn clone(&self) -> TransportLogEvent
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 TransportLogEvent
impl Debug for TransportLogEvent
Source§impl Default for TransportLogEvent
impl Default for TransportLogEvent
Source§fn default() -> TransportLogEvent
fn default() -> TransportLogEvent
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransportLogEvent
impl RefUnwindSafe for TransportLogEvent
impl Send for TransportLogEvent
impl Sync for TransportLogEvent
impl Unpin for TransportLogEvent
impl UnsafeUnpin for TransportLogEvent
impl UnwindSafe for TransportLogEvent
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