pub struct RequestLogEvent {
pub timestamp: DateTime<Utc>,
pub method: String,
pub path: String,
pub status: u16,
pub latency_ms: u32,
pub matched_route: Option<String>,
pub client_ip: Option<String>,
pub user_agent: Option<String>,
pub request_id: Option<String>,
pub bytes_in: Option<u64>,
pub bytes_out: Option<u64>,
}Expand description
One captured request/response pair. Fields kept thin so the shipper has no opinion on storage schema — the cloud side decides what to keep.
Fields§
§timestamp: DateTime<Utc>§method: String§path: String§status: u16§latency_ms: u32§matched_route: Option<String>§client_ip: Option<String>§user_agent: Option<String>§request_id: Option<String>§bytes_in: Option<u64>§bytes_out: Option<u64>Trait Implementations§
Source§impl Clone for RequestLogEvent
impl Clone for RequestLogEvent
Source§fn clone(&self) -> RequestLogEvent
fn clone(&self) -> RequestLogEvent
Returns a duplicate 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 RequestLogEvent
impl Debug for RequestLogEvent
Source§impl<'de> Deserialize<'de> for RequestLogEvent
impl<'de> Deserialize<'de> for RequestLogEvent
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
Auto Trait Implementations§
impl Freeze for RequestLogEvent
impl RefUnwindSafe for RequestLogEvent
impl Send for RequestLogEvent
impl Sync for RequestLogEvent
impl Unpin for RequestLogEvent
impl UnsafeUnpin for RequestLogEvent
impl UnwindSafe for RequestLogEvent
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