pub struct ContextRecipeStore { /* private fields */ }Expand description
Repository for storing and retrieving context recipes
Implementations§
Source§impl ContextRecipeStore
impl ContextRecipeStore
Sourcepub fn get_latest(&self, recipe_id: &str) -> Option<ContextRecipe>
pub fn get_latest(&self, recipe_id: &str) -> Option<ContextRecipe>
Get the latest version of a recipe
Sourcepub fn get_version(
&self,
recipe_id: &str,
version: &str,
) -> Option<ContextRecipe>
pub fn get_version( &self, recipe_id: &str, version: &str, ) -> Option<ContextRecipe>
Get a specific version of a recipe
Sourcepub fn list_versions(&self, recipe_id: &str) -> Vec<String>
pub fn list_versions(&self, recipe_id: &str) -> Vec<String>
List all versions of a recipe
Sourcepub fn find_by_session(&self, session_id: &str) -> Vec<ContextRecipe>
pub fn find_by_session(&self, session_id: &str) -> Vec<ContextRecipe>
Find recipes matching a session binding
Sourcepub fn find_by_agent(&self, agent_id: &str) -> Vec<ContextRecipe>
pub fn find_by_agent(&self, agent_id: &str) -> Vec<ContextRecipe>
Find recipes for an agent
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ContextRecipeStore
impl RefUnwindSafe for ContextRecipeStore
impl Send for ContextRecipeStore
impl Sync for ContextRecipeStore
impl Unpin for ContextRecipeStore
impl UnsafeUnpin for ContextRecipeStore
impl UnwindSafe for ContextRecipeStore
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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