Skip to navigation

Struct Extension Registration

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct ExtensionRegistration<'a> {
    pub namespace: &'a str,
    pub name: &'a str,
    pub description: &'a str,
    pub allowed_classes: &'a [FailureClass],
    pub outcome: DiagnosticOutcome,
}

Extension vocabulary is scoped to a producer namespace and admitted once.

Fields

namespace: &'a str

Producer namespace outside reserved built-in namespaces.

name: &'a str

Stable local name combined with the namespace at admission.

description: &'a str

Safe bounded explanation retained once in registration metadata.

allowed_classes: &'a [FailureClass]

Permitted causes; successful or unspecified extensions admit no class.

outcome: DiagnosticOutcome

Declared outcome used to validate extension class requirements.

Trait Implementations

impl<'a> Clone for ExtensionRegistration<'a>

impl<'a> Clone for ExtensionRegistration<'a>

clone

fn clone(&self) -> ExtensionRegistration<'a>

clone_from

fn clone_from(&mut self, source: &Self)

impl<'a> Debug for ExtensionRegistration<'a>

impl<'a> Debug for ExtensionRegistration<'a>

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result