pub struct IndexPackage {
pub name: String,
pub description: String,
pub provides: Vec<PluginId>,
pub versions: Vec<IndexVersion>,
}Expand description
A plugin package: one executable per platform, serving every plugin in provides.
Fields§
§name: String§description: String§provides: Vec<PluginId>Empty when the source doesn’t say (a GitHub release): the executable is asked once installed.
versions: Vec<IndexVersion>Implementations§
Source§impl IndexPackage
impl IndexPackage
Sourcepub fn best(&self, req: &VersionReq) -> Option<&IndexVersion>
pub fn best(&self, req: &VersionReq) -> Option<&IndexVersion>
The highest version matching req that has an artifact for this platform and speaks a
protocol this core supports. Pre-releases only when no stable version matches (see
prefer_stable).
pub fn exact(&self, v: &Version) -> Option<&IndexVersion>
Trait Implementations§
Source§impl Clone for IndexPackage
impl Clone for IndexPackage
Source§impl Debug for IndexPackage
impl Debug for IndexPackage
Source§impl<'de> Deserialize<'de> for IndexPackage
impl<'de> Deserialize<'de> for IndexPackage
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 Freeze for IndexPackage
impl RefUnwindSafe for IndexPackage
impl Send for IndexPackage
impl Sync for IndexPackage
impl Unpin for IndexPackage
impl UnsafeUnpin for IndexPackage
impl UnwindSafe for IndexPackage
Blanket Implementations§
impl<T> Allocation for T
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