Skip to main content

IntentResolver

Trait IntentResolver 

Source
pub trait IntentResolver {
    // Required method
    fn session_of(&self, intent_id: &IntentId) -> Option<SessionId>;
}
Expand description

Resolver the evaluator uses to look up intent metadata when a Session clause needs to know “which intents belong to this session?”. Wrapping it as a trait object lets test code stub it without standing up a real crate::IntentLog.

Required Methods§

Source

fn session_of(&self, intent_id: &IntentId) -> Option<SessionId>

Returns the session id of the given intent, if known.

Implementors§