pub trait ReadonlyContext: Send + Sync {
// Required method
fn user_content(&self) -> &Content;
// Provided methods
fn invocation_id(&self) -> &str { ... }
fn agent_name(&self) -> &str { ... }
fn user_id(&self) -> &str { ... }
fn app_name(&self) -> &str { ... }
fn session_id(&self) -> &str { ... }
fn branch(&self) -> &str { ... }
fn state(&self) -> Option<Value> { ... }
}Required Methods§
fn user_content(&self) -> &Content
Provided Methods§
fn invocation_id(&self) -> &str
fn agent_name(&self) -> &str
fn user_id(&self) -> &str
fn app_name(&self) -> &str
fn session_id(&self) -> &str
fn branch(&self) -> &str
fn state(&self) -> Option<Value>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".