pub enum Ownership {
New,
OwnedReinstall,
ForeignConflict,
}Expand description
Ownership classification of one declared capability id/filename against a
shared store, for the REFUSE-on-conflict capability kinds (MCP servers,
workflow files). Prompt presets do NOT use this — they rename on collision
via bamboo-server’s ensure_unique_preset_id instead.
Variants§
New
Not present in the shared store — safe to create AND record as plugin-owned/removable.
OwnedReinstall
Present, and registered by THIS plugin’s prior install — an upgrade re-registering its own entry. Safe; stays recorded as plugin-owned.
ForeignConflict
Present and NOT owned by this plugin (a user’s own entry, or another plugin’s). Must block the install — never recorded as removable.
Trait Implementations§
impl Copy for Ownership
impl Eq for Ownership
impl StructuralPartialEq for Ownership
Auto Trait Implementations§
impl Freeze for Ownership
impl RefUnwindSafe for Ownership
impl Send for Ownership
impl Sync for Ownership
impl Unpin for Ownership
impl UnsafeUnpin for Ownership
impl UnwindSafe for Ownership
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.