pub struct DynamicPluginManifest {
pub manifest_version: u32,
pub plugin: DynamicPluginManifestPlugin,
pub compat: DynamicPluginManifestCompat,
pub defaults: DynamicPluginManifestDefaults,
pub capabilities: DynamicPluginManifestCapabilities,
pub config_schema: Option<DynamicPluginManifestConfigSchema>,
pub load: DynamicPluginManifestLoad,
pub source: Option<DynamicPluginManifestSource>,
pub integrity: Option<DynamicPluginManifestIntegrity>,
pub description: Option<String>,
}Expand description
Authored relay-plugin.toml manifest.
Fields§
§manifest_version: u32Relay plugin manifest schema version.
plugin: DynamicPluginManifestPluginPlugin identity and lane declaration.
compat: DynamicPluginManifestCompatRelay compatibility declarations.
defaults: DynamicPluginManifestDefaultsDefault desired-state settings.
capabilities: DynamicPluginManifestCapabilitiesRequired capability declarations.
config_schema: Option<DynamicPluginManifestConfigSchema>Optional static configuration schema reference.
load: DynamicPluginManifestLoadRuntime load contract.
source: Option<DynamicPluginManifestSource>Optional source-oriented author metadata.
integrity: Option<DynamicPluginManifestIntegrity>Optional integrity/authenticity evidence references.
description: Option<String>Optional human-oriented description.
Implementations§
Source§impl DynamicPluginManifest
impl DynamicPluginManifest
Sourcepub fn parse_toml(toml_source: &str) -> Result<Self>
pub fn parse_toml(toml_source: &str) -> Result<Self>
Parses a relay-plugin.toml manifest from TOML text.
Sourcepub fn load_from_path(path: impl AsRef<Path>) -> Result<(Self, String)>
pub fn load_from_path(path: impl AsRef<Path>) -> Result<(Self, String)>
Loads and validates a relay-plugin.toml manifest from a file path or directory.
Sourcepub fn resolve_config_schema_path(
&self,
canonical_manifest_path: impl AsRef<Path>,
) -> Result<Option<PathBuf>>
pub fn resolve_config_schema_path( &self, canonical_manifest_path: impl AsRef<Path>, ) -> Result<Option<PathBuf>>
Resolves the declared configuration schema path without accessing it.
Relative schema paths are resolved from the parent directory of the
canonical relay-plugin.toml path. Absolute local paths are returned
unchanged.
Sourcepub fn into_record(
self,
manifest_ref: Option<String>,
) -> Result<DynamicPluginRecord>
pub fn into_record( self, manifest_ref: Option<String>, ) -> Result<DynamicPluginRecord>
Converts the authored manifest into a durable control-plane record.
Sourcepub fn validation_status(&self) -> DynamicPluginValidationStatus
pub fn validation_status(&self) -> DynamicPluginValidationStatus
Produces the initial validation status for a successfully validated manifest.
Trait Implementations§
Source§impl Clone for DynamicPluginManifest
impl Clone for DynamicPluginManifest
Source§fn clone(&self) -> DynamicPluginManifest
fn clone(&self) -> DynamicPluginManifest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DynamicPluginManifest
impl Debug for DynamicPluginManifest
Source§impl<'de> Deserialize<'de> for DynamicPluginManifest
impl<'de> Deserialize<'de> for DynamicPluginManifest
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>,
impl Eq for DynamicPluginManifest
Source§impl PartialEq for DynamicPluginManifest
impl PartialEq for DynamicPluginManifest
Source§impl Serialize for DynamicPluginManifest
impl Serialize for DynamicPluginManifest
impl StructuralPartialEq for DynamicPluginManifest
Auto Trait Implementations§
impl Freeze for DynamicPluginManifest
impl RefUnwindSafe for DynamicPluginManifest
impl Send for DynamicPluginManifest
impl Sync for DynamicPluginManifest
impl Unpin for DynamicPluginManifest
impl UnsafeUnpin for DynamicPluginManifest
impl UnwindSafe for DynamicPluginManifest
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
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
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request