pub enum AuditAction {
CreateFunction,
DeleteFunction,
InvokeFunction,
InvokeFunctionAsync,
InvokeFunctionStream,
}Expand description
Catalogue of state-mutating actions recognised by the audit log.
Tag strings (create_function, delete_function, invoke_function,
invoke_function_async, invoke_function_stream) are part of the
public contract.
Variants§
CreateFunction
POST /functions — deploy a new function.
DeleteFunction
DELETE /functions/{id} — remove a deployed function.
InvokeFunction
POST /functions/{id}/invoke — synchronous invocation.
InvokeFunctionAsync
POST /functions/{id}/invoke-async — fire-and-forget invocation.
InvokeFunctionStream
POST /functions/{id}/invoke-stream — streaming invocation
(SSE / chunked-transfer). Roadmap feature #2 — see
docs/STREAMING.md. The audit record carries the same
function_id / tenant shape as the other invoke actions so
operators can correlate streaming and non-streaming invocations
uniformly.
Implementations§
Source§impl AuditAction
impl AuditAction
Sourcepub fn classify(method: &Method, path: &str) -> Option<Self>
pub fn classify(method: &Method, path: &str) -> Option<Self>
Classify an (method, path) pair as one of the state-mutating
actions, or None for a read-only / unknown route.
The path matcher walks segments so per-id routes ({id}) match
regardless of the concrete UUID. Read-only routes (GET /healthz,
GET /metrics, GET /jobs/{id}) all return None here, which is
what suppresses their audit emission.
Trait Implementations§
Source§impl Clone for AuditAction
impl Clone for AuditAction
Source§fn clone(&self) -> AuditAction
fn clone(&self) -> AuditAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AuditAction
Source§impl Debug for AuditAction
impl Debug for AuditAction
impl Eq for AuditAction
Source§impl PartialEq for AuditAction
impl PartialEq for AuditAction
Source§fn eq(&self, other: &AuditAction) -> bool
fn eq(&self, other: &AuditAction) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AuditAction
impl Serialize for AuditAction
impl StructuralPartialEq for AuditAction
Auto Trait Implementations§
impl Freeze for AuditAction
impl RefUnwindSafe for AuditAction
impl Send for AuditAction
impl Sync for AuditAction
impl Unpin for AuditAction
impl UnsafeUnpin for AuditAction
impl UnwindSafe for AuditAction
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
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§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
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>
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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>
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>
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