Skip to main content

ReadonlyContext

Trait ReadonlyContext 

Source
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§

Provided Methods§

Source

fn invocation_id(&self) -> &str

Source

fn agent_name(&self) -> &str

Source

fn user_id(&self) -> &str

Source

fn app_name(&self) -> &str

Source

fn session_id(&self) -> &str

Source

fn branch(&self) -> &str

Source

fn state(&self) -> Option<Value>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§