pub struct AuditLine {
pub ts: String,
pub service: String,
pub endpoint: String,
pub tool: String,
pub outcome: &'static str,
pub error_kind: Option<String>,
pub caller: Option<String>,
pub subject: Option<String>,
pub elapsed_ms: u64,
}Expand description
One audit record: never arguments, ids or results.
Fields§
§ts: StringWhen the call finished, RFC 3339 in UTC with milliseconds.
service: StringThe service the tool belongs to.
endpoint: StringThe path the call arrived on.
tool: StringThe tool’s own name, without a combined-endpoint prefix.
outcome: &'static strok, error or refused.
error_kind: Option<String>For an error, its kind: the tool error’s kind: prefix, protocol, or read_only.
caller: Option<String>oauth:<client_id>, oauth (a token without a client id), credential (a credential
sent as the bearer token) or static (the static token, or a request with no caller at
all, which only happens without the bearer guard).
subject: Option<String>Who signed in (Caller::subject): owner, key:<16 hex digits>, static or a custom
verifier’s subject. Never a credential.
elapsed_ms: u64How long the call took.
Trait Implementations§
impl Eq for AuditLine
impl StructuralPartialEq for AuditLine
Auto Trait Implementations§
impl Forget for AuditLine
impl Freeze for AuditLine
impl RefUnwindSafe for AuditLine
impl Send for AuditLine
impl Sync for AuditLine
impl Unpin for AuditLine
impl UnsafeUnpin for AuditLine
impl UnwindSafe for AuditLine
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more