pub struct PluginRequirement {
pub plugin_type: String,
pub version: String,
pub source: String,
pub required: bool,
pub env_vars: Vec<String>,
}Expand description
A single plugin requirement declaration.
Fields§
§plugin_type: StringPlugin type (e.g., “channel”, “submit”, “build”).
version: StringVersion constraint. Phase 1: ">=X.Y.Z" (minimum version).
Phase 2 (future): full semver ranges like ">=0.1.0, <1.0.0".
source: StringWhere to get the plugin. Supported schemes:
registry:<name>— download from the TA plugin registrygithub:<owner/repo>— download from GitHub releasespath:<local-path>— build from local sourceurl:<download-url>— direct tarball URL
required: boolWhether this plugin is required for the project to function. Default: true. Optional plugins warn but don’t block.
env_vars: Vec<String>Environment variables this plugin needs (e.g., API tokens).
ta setup checks these and prints instructions for missing ones.
Trait Implementations§
Source§impl Clone for PluginRequirement
impl Clone for PluginRequirement
Source§fn clone(&self) -> PluginRequirement
fn clone(&self) -> PluginRequirement
Returns a duplicate of the value. Read more
1.0.0 · 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 PluginRequirement
impl Debug for PluginRequirement
Source§impl<'de> Deserialize<'de> for PluginRequirement
impl<'de> Deserialize<'de> for PluginRequirement
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 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§
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