pub struct PluginDescriptor { /* private fields */ }Expand description
Generated facts for one executable Plugin Release.
Implementations§
Source§impl PluginDescriptor
impl PluginDescriptor
Sourcepub fn contract(&self) -> PluginContract
pub fn contract(&self) -> PluginContract
Projects the runtime-independent Contract from this resolved descriptor.
Sourcepub fn implementation(&self) -> PluginImplementation
pub fn implementation(&self) -> PluginImplementation
Projects the exact runtime selection from this resolved descriptor.
Source§impl PluginDescriptor
impl PluginDescriptor
pub fn new( plugin_id: impl Into<String>, release_version: impl Into<String>, root_slot: impl Into<String>, ) -> Self
pub fn with_runtime_package( self, package_id: impl Into<String>, package_revision: impl Into<String>, ) -> Self
pub fn runtime_profile(&self) -> &str
pub fn with_entrypoint(self, entrypoint: impl Into<String>) -> Self
pub fn with_configuration_schema(self, schema: Value) -> Self
pub fn with_configuration_defaults(self, defaults: Value) -> Self
pub fn with_capability(self, capability: CapabilityEndpointPlan) -> Self
pub fn with_requirement(self, requirement: CapabilityRequirementPlan) -> Self
pub fn with_execution_class(self, execution_class: ExecutionClassId) -> Self
pub fn with_restart_policy(self, restart_policy: RestartPolicy) -> Self
pub fn with_criticality(self, criticality: PluginCriticality) -> Self
pub fn plugin_id(&self) -> &str
pub fn release_version(&self) -> &str
pub fn root_slot(&self) -> &str
pub fn runtime_package_id(&self) -> &str
pub fn runtime_package_revision(&self) -> &str
pub fn entrypoint(&self) -> &str
pub const fn configuration_schema(&self) -> Option<&Value>
pub const fn configuration_defaults(&self) -> &Value
pub fn provided_capabilities(&self) -> &[CapabilityEndpointPlan]
pub fn required_capabilities(&self) -> &[CapabilityRequirementPlan]
pub fn execution_class(&self) -> &ExecutionClassId
pub const fn restart_policy(&self) -> RestartPolicy
pub const fn criticality(&self) -> PluginCriticality
Trait Implementations§
Source§impl Clone for PluginDescriptor
impl Clone for PluginDescriptor
Source§fn clone(&self) -> PluginDescriptor
fn clone(&self) -> PluginDescriptor
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 PluginDescriptor
impl Debug for PluginDescriptor
Source§impl<'de> Deserialize<'de> for PluginDescriptor
impl<'de> Deserialize<'de> for PluginDescriptor
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 PluginDescriptor
Source§impl PartialEq for PluginDescriptor
impl PartialEq for PluginDescriptor
Source§impl Serialize for PluginDescriptor
impl Serialize for PluginDescriptor
impl StructuralPartialEq for PluginDescriptor
Auto Trait Implementations§
impl Freeze for PluginDescriptor
impl RefUnwindSafe for PluginDescriptor
impl Send for PluginDescriptor
impl Sync for PluginDescriptor
impl Unpin for PluginDescriptor
impl UnsafeUnpin for PluginDescriptor
impl UnwindSafe for PluginDescriptor
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