pub struct PluginSource {
pub url: Option<String>,
pub sha256: Option<String>,
}Expand description
Install-time source metadata persisted as .plugin-source.toml alongside .plugin.toml.
Separating this from crate::manifest::PluginMeta keeps the author-facing plugin.toml
schema clean: plugin authors never set these fields; they are written exclusively by
PluginManager::add_remote and read by PluginManager::check_auto_updates.
Fields§
§url: Option<String>URL from which the plugin archive was originally downloaded.
None for plugins installed from local paths via PluginManager::add.
sha256: Option<String>Lowercase hex SHA-256 of the installed archive bytes.
Used by PluginManager::check_auto_updates to skip reinstalls when the remote
archive has not changed.
Trait Implementations§
Source§impl Clone for PluginSource
impl Clone for PluginSource
Source§fn clone(&self) -> PluginSource
fn clone(&self) -> PluginSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginSource
impl Debug for PluginSource
Source§impl Default for PluginSource
impl Default for PluginSource
Source§fn default() -> PluginSource
fn default() -> PluginSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PluginSource
impl<'de> Deserialize<'de> for PluginSource
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 PluginSource
impl RefUnwindSafe for PluginSource
impl Send for PluginSource
impl Sync for PluginSource
impl Unpin for PluginSource
impl UnsafeUnpin for PluginSource
impl UnwindSafe for PluginSource
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