pub struct Plugin {
pub name: String,
pub description: String,
pub homepage: Option<String>,
pub install_help: Option<String>,
pub priority: i32,
pub default_variant: String,
pub detect: DetectConfig,
pub variants: HashMap<String, Variant>,
pub commands: HashMap<String, String>,
pub command_variants: HashMap<String, HashMap<String, String>>,
pub flags: HashMap<String, HashMap<String, FlagTranslation>>,
pub unsupported: HashMap<String, String>,
}Fields§
§name: String§description: String§homepage: Option<String>§install_help: Option<String>§priority: i32§default_variant: String§detect: DetectConfig§variants: HashMap<String, Variant>§commands: HashMap<String, String>§command_variants: HashMap<String, HashMap<String, String>>§flags: HashMap<String, HashMap<String, FlagTranslation>>§unsupported: HashMap<String, String>Implementations§
Source§impl Plugin
impl Plugin
pub fn resolve_variant( &self, variant_name: &str, source: PluginSource, ) -> Result<ResolvedPlugin>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plugin
impl RefUnwindSafe for Plugin
impl Send for Plugin
impl Sync for Plugin
impl Unpin for Plugin
impl UnsafeUnpin for Plugin
impl UnwindSafe for Plugin
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more