Skip to navigation

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -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 PluginExecutionName(/* private fields */);

A plugin execution mechanism name, preserving values unknown to this reader. Typed conversion accepts only the corresponding catalogue enum.

Implementations

impl PluginExecutionName

impl PluginExecutionName

Referenced types: PluginExecutionName

from_opaque_name

pub fn from_opaque_name(name: Cow<'static, str>) -> PluginExecutionName

Referenced types: Cow, str, PluginExecutionName

Explicitly preserve a wire name; this does not authorize recording it.

as_str

pub fn as_str(&self) -> &str

Referenced types: str

Borrow the name without interpreting an unfamiliar value.

known

pub fn known(&self) -> Option<PluginExecution>

Referenced types: Option, PluginExecution

Recognize a supported value without discarding an unknown name.

into_name

pub fn into_name(self) -> Cow<'static, str>

Referenced types: Cow, str

Transfer the borrowed name or owned string without cloning.

Trait Implementations

impl Clone for PluginExecutionName

impl Clone for PluginExecutionName

Referenced types: Clone, PluginExecutionName

clone

fn clone(&self) -> PluginExecutionName

Referenced types: clone, PluginExecutionName

clone_from

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

Referenced types: clone_from

impl Debug for PluginExecutionName

impl Debug for PluginExecutionName

Referenced types: Debug, PluginExecutionName

fmt

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

Referenced types: fmt, Formatter, Result, (), Error

impl<'de> Deserialize<'de> for PluginExecutionName

impl<'de> Deserialize<'de> for PluginExecutionName

Referenced types: Deserialize, PluginExecutionName

deserialize

fn deserialize<__D>(
__deserializer: __D,
) -> Result<PluginExecutionName, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,

Referenced types: deserialize, Result, PluginExecutionName, Deserializer, Error

impl From<PluginExecution> for PluginExecutionName

impl From<PluginExecution> for PluginExecutionName

Referenced types: From, PluginExecution, PluginExecutionName

from

fn from(value: PluginExecution) -> PluginExecutionName

Referenced types: from, PluginExecution, PluginExecutionName

impl Hash for PluginExecutionName

impl Hash for PluginExecutionName

Referenced types: Hash, PluginExecutionName

hash

fn hash<__H>(&self, state: &mut __H)where
__H: Hasher,

Referenced types: hash, &mut __H, Hasher

hash_slice

fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,

Referenced types: hash_slice, &mut H, Hasher, Sized

impl JsonSchema for PluginExecutionName

impl JsonSchema for PluginExecutionName

Referenced types: PluginExecutionName

is_referenceable

fn is_referenceable() -> bool

Referenced types: bool

schema_name

fn schema_name() -> String

Referenced types: String

schema_id

fn schema_id() -> Cow<'static, str>

Referenced types: Cow, str

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

impl PartialEq for PluginExecutionName

impl PartialEq for PluginExecutionName

Referenced types: PartialEq, PluginExecutionName

eq

fn eq(&self, other: &PluginExecutionName) -> bool

Referenced types: eq, PluginExecutionName, bool

ne

fn ne(&self, other: &Rhs) -> bool

Referenced types: ne, &Rhs, bool

impl Serialize for PluginExecutionName

impl Serialize for PluginExecutionName

Referenced types: Serialize, PluginExecutionName

serialize

fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,

Referenced types: serialize, Result, Serializer, Ok, Error

impl WireValue<String> for PluginExecutionName

impl WireValue<String> for PluginExecutionName

Referenced types: WireValue, String, PluginExecutionName

to_wire

fn to_wire(self) -> Result<String, ConversionError>

Referenced types: to_wire, Result, String, ConversionError

from_wire

fn from_wire(value: String) -> Result<PluginExecutionName, ConversionError>

Referenced types: from_wire, String, Result, PluginExecutionName, ConversionError

impl Eq for PluginExecutionName

impl Eq for PluginExecutionName

Referenced types: Eq, PluginExecutionName

impl StructuralPartialEq for PluginExecutionName

impl StructuralPartialEq for PluginExecutionName

Referenced types: StructuralPartialEq, PluginExecutionName