pub struct Extension { /* private fields */ }Implementations§
Source§impl Extension
impl Extension
String of the plugin author
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
String short description of the plugin
Sourcepub fn license_text(&self) -> String
pub fn license_text(&self) -> String
String complete license text for the given plugin
Sourcepub fn minimum_version_info(&self) -> VersionInfo
pub fn minimum_version_info(&self) -> VersionInfo
Minimum version info the plugin was tested on
Sourcepub fn maximum_version_info(&self) -> VersionInfo
pub fn maximum_version_info(&self) -> VersionInfo
Maximum version info the plugin will support
Sourcepub fn versions(&self) -> Array<ExtensionVersion>
pub fn versions(&self) -> Array<ExtensionVersion>
Metadata for all available versions of this plugin
Sourcepub fn current_version(&self) -> ExtensionVersion
pub fn current_version(&self) -> ExtensionVersion
Metadata for the currently selected version of this plugin
Sourcepub fn project_url(&self) -> String
pub fn project_url(&self) -> String
String URL of the plugin’s git repository
Sourcepub fn package_url(&self) -> String
pub fn package_url(&self) -> String
String URL of the plugin’s git repository
String URL of the plugin author’s url
Sourcepub fn path(&self) -> PathBuf
pub fn path(&self) -> PathBuf
Relative path from the base of the repository to the actual plugin
Sourcepub fn subdir(&self) -> PathBuf
pub fn subdir(&self) -> PathBuf
Optional sub-directory the plugin code lives in as a relative path from the plugin root
Sourcepub fn dependencies(&self) -> String
pub fn dependencies(&self) -> String
Dependencies required for installing this plugin
Sourcepub fn is_installed(&self) -> bool
pub fn is_installed(&self) -> bool
true if the plugin is installed, false otherwise
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
true if the plugin is enabled, false otherwise
pub fn status(&self) -> PluginStatus
Sourcepub fn types(&self) -> Array<PluginType>
pub fn types(&self) -> Array<PluginType>
List of PluginType enumeration objects indicating the plugin type(s)
Sourcepub fn enable(&self, force: bool) -> bool
pub fn enable(&self, force: bool) -> bool
Enable this plugin, optionally trying to force it. Force loading a plugin with ignore platform and api constraints.
pub fn disable(&self) -> bool
pub fn install_dependencies(&self) -> bool
pub fn updated(&self, version_id: &str) -> bool
pub fn repository(&self) -> String
Sourcepub fn is_being_deleted(&self) -> bool
pub fn is_being_deleted(&self) -> bool
Boolean status indicating that the plugin is being deleted
Sourcepub fn is_being_updated(&self) -> bool
pub fn is_being_updated(&self) -> bool
Boolean status indicating that the plugin is being updated
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Boolean status indicating that the plugin is currently running
Sourcepub fn is_update_pending(&self) -> bool
pub fn is_update_pending(&self) -> bool
Boolean status indicating that the plugin has updates will be installed after the next restart
Sourcepub fn is_disable_pending(&self) -> bool
pub fn is_disable_pending(&self) -> bool
Boolean status indicating that the plugin will be disabled after the next restart
Sourcepub fn is_delete_pending(&self) -> bool
pub fn is_delete_pending(&self) -> bool
Boolean status indicating that the plugin will be deleted after the next restart
Sourcepub fn is_updated_available(&self) -> bool
pub fn is_updated_available(&self) -> bool
Boolean status indicating that the plugin has updates available
Sourcepub fn are_dependencies_being_installed(&self) -> bool
pub fn are_dependencies_being_installed(&self) -> bool
Boolean status indicating that the plugin’s dependencies are currently being installed
Sourcepub fn project_data(&self) -> String
pub fn project_data(&self) -> String
Gets a json object of the project data field