pub struct AccessRecord {
pub ts: String,
pub request_id: String,
pub method: String,
pub target: String,
pub client_ip: String,
pub status: u16,
pub outcome: String,
pub latency_ms: u64,
pub edge_id: String,
}Expand description
One access-log record on the wire.
The fields are exactly what finish() already logs to stdout — deliberately, so the shipped
stream and the local one cannot disagree about what happened. target arrives already
sanitised by crate::accesslog::sanitize_target: a proxy that advertises DLP must not be the
component that writes credentials into a SIEM.
Fields§
§ts: StringRFC3339 UTC, so a collector can order records across boxes without trusting arrival order.
request_id: String§method: String§target: StringPath plus sanitised query.
client_ip: String§status: u16§outcome: String§latency_ms: u64§edge_id: StringThe edge that served it, so a fleet-wide stream stays attributable.
Trait Implementations§
Source§impl Clone for AccessRecord
impl Clone for AccessRecord
Source§fn clone(&self) -> AccessRecord
fn clone(&self) -> AccessRecord
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 AccessRecord
impl Debug for AccessRecord
Auto Trait Implementations§
impl Freeze for AccessRecord
impl RefUnwindSafe for AccessRecord
impl Send for AccessRecord
impl Sync for AccessRecord
impl Unpin for AccessRecord
impl UnsafeUnpin for AccessRecord
impl UnwindSafe for AccessRecord
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