pub struct Manifest {
pub name: String,
pub version: String,
pub description: String,
pub api: u32,
pub tools: Vec<ToolDef>,
pub prompts: Vec<PromptDef>,
pub provider_profiles: Vec<ProfileDef>,
pub hooks: Vec<HookDef>,
pub mcp: Vec<Spec>,
}Fields§
§name: String§version: String§description: String§api: u32Manifest API version; defaults to the current one for hand-written plugins.
tools: Vec<ToolDef>§prompts: Vec<PromptDef>§provider_profiles: Vec<ProfileDef>§hooks: Vec<HookDef>§mcp: Vec<Spec>MCP servers this plugin adds tools from. Each is one long-lived process (see
crate::mcp); unlike [[tool]], one entry can contribute many tools.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
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 Forget for Manifest
impl Freeze for Manifestwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ToolDef>: Freeze,
PhantomData<PromptDef>: Freeze,
PhantomData<ProfileDef>: Freeze,
PhantomData<HookDef>: Freeze,
PhantomData<Spec>: Freeze,
impl Move for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifestwhere
RawVecInner: Send,
BoxRaw<Value>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
NodeRef<Owned, String, ModelReasoningDef, LeafOrInternal>: Send,
BoxRaw<(String, ModelReasoningDef)>: Send,
NodeRef<Owned, String, LimitDef, LeafOrInternal>: Send,
BoxRaw<(String, LimitDef)>: Send,
NodeRef<Owned, String, Policy, LeafOrInternal>: Send,
BoxRaw<(String, Policy)>: Send,
impl Sync for Manifestwhere
RawVecInner: Sync,
BoxRaw<Value>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
NodeRef<Owned, String, ModelReasoningDef, LeafOrInternal>: Sync,
BoxRaw<(String, ModelReasoningDef)>: Sync,
NodeRef<Owned, String, LimitDef, LeafOrInternal>: Sync,
BoxRaw<(String, LimitDef)>: Sync,
NodeRef<Owned, String, Policy, LeafOrInternal>: Sync,
BoxRaw<(String, Policy)>: Sync,
impl Unpin for Manifestwhere
*const u8 is !null: Unpin,
Box<Value>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
*const LeafNode<String, ModelReasoningDef> is !null: Unpin,
Box<(String, ModelReasoningDef)>: Unpin,
*const LeafNode<String, LimitDef> is !null: Unpin,
Box<(String, LimitDef)>: Unpin,
*const LeafNode<String, Policy> is !null: Unpin,
Box<(String, Policy)>: Unpin,
impl UnsafeUnpin for Manifestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ToolDef>: UnsafeUnpin,
PhantomData<PromptDef>: UnsafeUnpin,
PhantomData<ProfileDef>: UnsafeUnpin,
PhantomData<HookDef>: UnsafeUnpin,
PhantomData<Spec>: UnsafeUnpin,
impl UnwindSafe for Manifestwhere
RawVecInner: UnwindSafe,
BoxRaw<Value>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BTreeMap<String, ModelReasoningDef>: UnwindSafe,
BTreeMap<String, LimitDef>: UnwindSafe,
BTreeMap<String, Policy>: UnwindSafe,
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