pub struct InstalledPlugin {
pub id: String,
pub version: String,
pub source: PluginSource,
pub plugin_dir: PathBuf,
pub installed_at: DateTime<Utc>,
pub status: PluginInstallStatus,
pub registered: RegisteredCapabilities,
}Expand description
A single installed plugin’s provenance record.
Fields§
§id: String§version: StringThe manifest version at the time of this install/upgrade.
source: PluginSource§plugin_dir: PathBuf~/.bamboo/plugins/<id> — where the plugin’s own files live.
installed_at: DateTime<Utc>Caller-supplied timestamp (NOT computed internally — see module docs
on why: keeps this crate free of a hidden Utc::now() call so tests
and callers stay in full control of “when”).
status: PluginInstallStatusCrash-safety journal marker (see PluginInstallStatus). Defaults to
PluginInstallStatus::Installed so an installed.json written before
this field existed loads as a completed install.
registered: RegisteredCapabilitiesTrait Implementations§
Source§impl Clone for InstalledPlugin
impl Clone for InstalledPlugin
Source§fn clone(&self) -> InstalledPlugin
fn clone(&self) -> InstalledPlugin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstalledPlugin
impl Debug for InstalledPlugin
Source§impl<'de> Deserialize<'de> for InstalledPlugin
impl<'de> Deserialize<'de> for InstalledPlugin
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
impl Eq for InstalledPlugin
Source§impl PartialEq for InstalledPlugin
impl PartialEq for InstalledPlugin
Source§impl Serialize for InstalledPlugin
impl Serialize for InstalledPlugin
impl StructuralPartialEq for InstalledPlugin
Auto Trait Implementations§
impl Freeze for InstalledPlugin
impl RefUnwindSafe for InstalledPlugin
impl Send for InstalledPlugin
impl Sync for InstalledPlugin
impl Unpin for InstalledPlugin
impl UnsafeUnpin for InstalledPlugin
impl UnwindSafe for InstalledPlugin
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.