Skip to main content

Wire

Struct Wire 

Source
pub struct Wire {
Show 21 fields pub action: Option<String>, pub auth_method: Option<String>, pub email: Option<String>, pub hash: Option<String>, pub home: Option<String>, pub is_admin: Option<bool>, pub method: Option<String>, pub org: Option<String>, pub path: Option<String>, pub prev_hash: Option<String>, pub reason: Option<String>, pub request_id: Option<String>, pub resource: Option<String>, pub resource_id: Option<String>, pub result: Option<String>, pub seq: Option<i32>, pub source_ip: Option<String>, pub status: Option<i32>, pub sub: Option<String>, pub time: Option<String>, pub user_agent: Option<String>,
}

Fields§

§action: Option<String>

Action is the verb that was performed. It is the event’s name, not the HTTP method — a request-sourced record carries both, and the pair is what makes a row readable ("grant.create" at POST /v1/admin/grants).

§auth_method: Option<String>

Auth is the credential the actor presented: "jwt", "api-key", or "none".

§email: Option<String>

Email is the actor’s validated address, absent when the credential carried none. It comes from the verified token, never from a client header.

§hash: Option<String>

Hash is this record’s SHA-256 over its own canonical JSON with both hash fields cleared, folded with prevHash. Recomputing it from the row’s other fields is what proves the row has not been edited.

§home: Option<String>

Home is present ONLY on a cross-org action: the org the actor came FROM, while Org is the org they acted IN. A console row carrying home is a platform-admin impersonation and should be rendered as one.

§is_admin: Option<bool>

IsAdmin is the VALIDATED platform-SuperAdmin bit at decision time (membership of the reserved admin org), never the client’s own claim to be one.

§method: Option<String>

Method is the HTTP verb, on a record a request produced. Absent on an event emitted from inside the binary with no request behind it.

§org: Option<String>

Org is the tenant the action was taken IN — the effective org, which for everyone but an impersonating SuperAdmin is also the actor’s own. Empty on an unauthenticated request.

§path: Option<String>

Path is the request’s route. Any segment shaped like a credential is replaced before the record is written, so a key that rides in a path is not preserved here by the very control meant to watch it.

§prev_hash: Option<String>

PrevHash is the hash of record seq-1, which is what links the rows into a chain: a deleted or reordered record breaks the recomputation at that point. The first record of a chain carries 64 zeros rather than an empty string, so "start of chain" and "field missing" cannot look alike.

§reason: Option<String>

Reason is a short explanation for a deny or an error ("SuperAdmin required", "insufficient_balance"). It is never a secret and never a raw upstream error body; absent on a success.

§request_id: Option<String>

RequestID ties this row to the request-line log and any downstream trace — the X-Request-Id the pipeline minted for that request.

§resource: Option<String>

Resource is the KIND of thing acted upon ("org", "role", "secret", "provider-config", "credit"). Where a mutation has no finer semantics than its route, this is the route family and resourceId is empty — the action and the path already pin the object.

§resource_id: Option<String>

ResourceID is the specific instance, absent when the kind alone identifies it.

§result: Option<String>

Result is how the action ended: "success", "deny" or "error". A deny is a decision this binary made and is as much evidence as a success.

§seq: Option<i32>

Seq is the record’s position in the chain, 0-based and gapless. The Recorder assigns it under its own lock, so it is a true total order: seq n+1 was written after seq n, and a missing number is a missing record.

§source_ip: Option<String>

SourceIP is the client address the edge resolved for the request, after the proxy chain — the address a responder would act on, not the socket peer.

§status: Option<i32>

Status is the HTTP status the caller received. It is the outcome as the client saw it, so a 200 carrying a domain refusal still reads 200 here.

§sub: Option<String>

Sub is the acting user (the IAM subject). Empty for a machine principal or an anonymous request, which is how a service action is told from a person’s.

§time: Option<String>

Time is when the action happened, RFC3339Nano in UTC. The stored column has the same precision and sorts the same way, so a client can range and order on this string verbatim.

§user_agent: Option<String>

UserAgent is the client the request announced itself as. Client-supplied, so it is evidence about what claimed to act, not proof of it.

Implementations§

Source§

impl Wire

Source

pub fn new() -> Wire

Trait Implementations§

Source§

impl Clone for Wire

Source§

fn clone(&self) -> Wire

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Wire

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Wire

Source§

fn default() -> Wire

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Wire

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Wire

Source§

fn eq(&self, other: &Wire) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Wire

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Wire

Auto Trait Implementations§

§

impl Freeze for Wire

§

impl RefUnwindSafe for Wire

§

impl Send for Wire

§

impl Sync for Wire

§

impl Unpin for Wire

§

impl UnsafeUnpin for Wire

§

impl UnwindSafe for Wire

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more