pub struct PluginFunctor {
pub plugin_id: String,
pub name: String,
pub version: String,
pub abstract_spec_ref: String,
pub concrete_impl_ref: String,
pub balanced_exp_ref: String,
pub required_capabilities: Vec<String>,
pub optional_capabilities: Vec<String>,
}Fields§
§plugin_id: String§name: String§version: String§abstract_spec_ref: String§concrete_impl_ref: String§balanced_exp_ref: String§required_capabilities: Vec<String>§optional_capabilities: Vec<String>Implementations§
Source§impl PluginFunctor
impl PluginFunctor
Sourcepub fn compute_plugin_id(
name: &str,
version: &str,
abstract_ref: &str,
concrete_ref: &str,
balanced_ref: &str,
required_caps: &[String],
) -> String
pub fn compute_plugin_id( name: &str, version: &str, abstract_ref: &str, concrete_ref: &str, balanced_ref: &str, required_caps: &[String], ) -> String
Computes the canonical BLAKE3 content digest for a plugin definition.
Sourcepub fn from_yaml(yaml_content: &str) -> Result<Self, String>
pub fn from_yaml(yaml_content: &str) -> Result<Self, String>
Parses and validates a PFSD plugin YAML definition.
Trait Implementations§
Source§impl Clone for PluginFunctor
impl Clone for PluginFunctor
Source§impl Debug for PluginFunctor
impl Debug for PluginFunctor
Source§impl<'de> Deserialize<'de> for PluginFunctor
impl<'de> Deserialize<'de> for PluginFunctor
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
impl Eq for PluginFunctor
Source§impl PartialEq for PluginFunctor
impl PartialEq for PluginFunctor
Source§impl Serialize for PluginFunctor
impl Serialize for PluginFunctor
impl StructuralPartialEq for PluginFunctor
Auto Trait Implementations§
impl Freeze for PluginFunctor
impl RefUnwindSafe for PluginFunctor
impl Send for PluginFunctor
impl Sync for PluginFunctor
impl Unpin for PluginFunctor
impl UnsafeUnpin for PluginFunctor
impl UnwindSafe for PluginFunctor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.