pub struct PluginRequirement {
pub name: String,
pub version: String,
pub declared_in: Vec<PathBuf>,
pub source: PluginSource,
}Expand description
A declared plugin package.
Fields§
§name: StringThe package’s name.
version: StringThe intersection of every declared constraint.
declared_in: Vec<PathBuf>Files declaring it, relative to the root.
source: PluginSourceWhere it’s installed from.
Implementations§
Source§impl PluginRequirement
impl PluginRequirement
pub fn req(&self) -> VersionReq
Trait Implementations§
Source§impl Clone for PluginRequirement
impl Clone for PluginRequirement
Source§impl Debug for PluginRequirement
impl Debug for PluginRequirement
Auto Trait Implementations§
impl Freeze for PluginRequirement
impl RefUnwindSafe for PluginRequirement
impl Send for PluginRequirement
impl Sync for PluginRequirement
impl Unpin for PluginRequirement
impl UnsafeUnpin for PluginRequirement
impl UnwindSafe for PluginRequirement
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