Struct PluginCatalogEntry
pub struct PluginCatalogEntry<'a> { /* private fields */ }Expand description
One package in the materialized plugin catalog.
Both sources are retained when a package is installed and also appears in the registry. Callers can therefore present version differences without guessing whether an arbitrary registry version string is newer.
Implementations§
Source§impl<'a> PluginCatalogEntry<'a>
impl<'a> PluginCatalogEntry<'a>
Sourcepub fn name(&self) -> &'a str
pub fn name(&self) -> &'a str
Canonical package name used by install, remove, and info commands.
Sourcepub fn installed(&self) -> Option<&'a PluginInfo>
pub fn installed(&self) -> Option<&'a PluginInfo>
Host-admitted metadata when this package is installed.
Sourcepub fn available(&self) -> Option<&'a PluginRegistryEntry>
pub fn available(&self) -> Option<&'a PluginRegistryEntry>
Registry metadata selected by the same unpinned resolution rule as
plugin install <name>.
Trait Implementations§
Source§impl<'a> Clone for PluginCatalogEntry<'a>
impl<'a> Clone for PluginCatalogEntry<'a>
Source§fn clone(&self) -> PluginCatalogEntry<'a>
fn clone(&self) -> PluginCatalogEntry<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for PluginCatalogEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for PluginCatalogEntry<'a>
impl<'a> RefUnwindSafe for PluginCatalogEntry<'a>
impl<'a> Send for PluginCatalogEntry<'a>
impl<'a> Sync for PluginCatalogEntry<'a>
impl<'a> Unpin for PluginCatalogEntry<'a>
impl<'a> UnsafeUnpin for PluginCatalogEntry<'a>
impl<'a> UnwindSafe for PluginCatalogEntry<'a>
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