pub trait ReadonlyContext {
// Required methods
fn invocation_id(&self) -> &str;
fn session_id(&self) -> &str;
fn user_id(&self) -> &str;
fn app_name(&self) -> &str;
}Expand description
The minimum context available to any participant in the system.
Provides read-only identity information: who is making the request, which session it belongs to, and which application is running.
Required Methods§
Sourcefn invocation_id(&self) -> &str
fn invocation_id(&self) -> &str
Returns the unique invocation identifier for this run.
Sourcefn session_id(&self) -> &str
fn session_id(&self) -> &str
Returns the session identifier.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".