pub struct Recipe {
pub name: String,
pub namepath: String,
pub description: Option<String>,
pub parameters: Vec<RecipeParameter>,
pub groups: Vec<String>,
pub allow_agent: bool,
}Expand description
A recipe exposed to MCP callers.
Fields§
§name: StringRecipe name.
namepath: StringDotted name-path (e.g. module::recipe).
description: Option<String>Description from doc comment.
parameters: Vec<RecipeParameter>Parameters the recipe accepts.
groups: Vec<String>Groups the recipe belongs to (from [group: '...']).
allow_agent: boolWhether the recipe is marked agent-safe.
Implementations§
Source§impl Recipe
impl Recipe
Sourcepub fn from_just_recipe(raw: JustRecipe, allow_agent: bool) -> Self
pub fn from_just_recipe(raw: JustRecipe, allow_agent: bool) -> Self
Build a Recipe from JustRecipe, setting allow_agent explicitly.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Recipe
impl<'de> Deserialize<'de> for Recipe
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Recipe
impl RefUnwindSafe for Recipe
impl Send for Recipe
impl Sync for Recipe
impl Unpin for Recipe
impl UnsafeUnpin for Recipe
impl UnwindSafe for Recipe
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