pub struct Plugin {
pub name: String,
pub version: String,
pub description: String,
pub dir: PathBuf,
pub manifest: Manifest,
pub enabled: bool,
}Expand description
A plugin that loaded: its manifest plus where it lives.
Fields§
§name: String§version: String§description: String§dir: PathBufThe plugin’s directory; also its identity for [plugins] enabled.
manifest: Manifest§enabled: boolWhether [plugins] enabled lists it (#419). A manifest that declares nothing but
provider profiles is loaded when it is not enabled, so its wire settings exist — but it is
not enabled, and nothing it ships on disk (a skills/ directory, say) may be exposed. The
two used to be the same list; they are not the same question.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Plugin
impl Freeze for Pluginwhere
*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 Plugin
impl RefUnwindSafe for Plugin
impl Send for Pluginwhere
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 Pluginwhere
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 Pluginwhere
*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 Pluginwhere
*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 Pluginwhere
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