Enum Registration Surface

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.

1#[repr(i32)]pub enum RegistrationSurface {
2Show 13 variants Unspecified = 0,
3 Subscriber = 1,
4 ToolSanitizeRequestGuardrail = 10,
5 ToolSanitizeResponseGuardrail = 11,
6 ToolConditionalExecutionGuardrail = 12,
7 ToolRequestIntercept = 13,
8 ToolExecutionIntercept = 14,
9 LlmSanitizeRequestGuardrail = 20,
10 LlmSanitizeResponseGuardrail = 21,
11 LlmConditionalExecutionGuardrail = 22,
12 LlmRequestIntercept = 23,
13 LlmExecutionIntercept = 24,
14 LlmStreamExecutionIntercept = 25,
15}

Variants

Unspecified = 0

Unspecified = 0

Subscriber = 1

Subscriber = 1

ToolSanitizeRequestGuardrail = 10

ToolSanitizeRequestGuardrail = 10

ToolSanitizeResponseGuardrail = 11

ToolSanitizeResponseGuardrail = 11

ToolConditionalExecutionGuardrail = 12

ToolConditionalExecutionGuardrail = 12

ToolRequestIntercept = 13

ToolRequestIntercept = 13

ToolExecutionIntercept = 14

ToolExecutionIntercept = 14

LlmSanitizeRequestGuardrail = 20

LlmSanitizeRequestGuardrail = 20

LlmSanitizeResponseGuardrail = 21

LlmSanitizeResponseGuardrail = 21

LlmConditionalExecutionGuardrail = 22

LlmConditionalExecutionGuardrail = 22

LlmRequestIntercept = 23

LlmRequestIntercept = 23

LlmExecutionIntercept = 24

LlmExecutionIntercept = 24

LlmStreamExecutionIntercept = 25

LlmStreamExecutionIntercept = 25

Implementations

impl RegistrationSurface

impl RegistrationSurface

is_valid

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of RegistrationSurface.

from_i32

pub fn from_i32(value: i32) -> Option<RegistrationSurface>

Converts an i32 to a RegistrationSurface, or None if value is not a valid variant.

impl RegistrationSurface

impl RegistrationSurface

as_str_name

pub fn as_str_name(&self) -> &'static str

String value of the enum field names used in the ProtoBuf definition.

The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.

from_str_name

pub fn from_str_name(value: &str) -> Option<Self>

Creates an enum from field names used in the ProtoBuf definition.

Trait Implementations

impl Clone for RegistrationSurface

impl Clone for RegistrationSurface

clone

fn clone(&self) -> RegistrationSurface

clone_from

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

impl Debug for RegistrationSurface

impl Debug for RegistrationSurface

fmt

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

impl Default for RegistrationSurface

impl Default for RegistrationSurface

default

fn default() -> RegistrationSurface

impl From<RegistrationSurface> for i32

impl From<RegistrationSurface> for i32

from

fn from(value: RegistrationSurface) -> i32

impl Hash for RegistrationSurface

impl Hash for RegistrationSurface

hash

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

hash_slice

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

impl Ord for RegistrationSurface

impl Ord for RegistrationSurface

cmp

fn cmp(&self, other: &RegistrationSurface) -> Ordering

max

fn max(self, other: Self) -> Selfwhere
    Self: Sized,

min

fn min(self, other: Self) -> Selfwhere
    Self: Sized,

clamp

fn clamp(self, min: Self, max: Self) -> Selfwhere
    Self: Sized,

impl PartialEq for RegistrationSurface

impl PartialEq for RegistrationSurface

eq

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

ne

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

impl PartialOrd for RegistrationSurface

impl PartialOrd for RegistrationSurface

partial_cmp

fn partial_cmp(&self, other: &RegistrationSurface) -> Option<Ordering>

lt

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

le

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

gt

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

ge

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

impl TryFrom<i32> for RegistrationSurface

impl TryFrom<i32> for RegistrationSurface

Error

type Error = UnknownEnumValue

try_from

fn try_from(value: i32) -> Result<RegistrationSurface, UnknownEnumValue>

impl Copy for RegistrationSurface

impl Copy for RegistrationSurface

impl Eq for RegistrationSurface

impl Eq for RegistrationSurface

impl StructuralPartialEq for RegistrationSurface

impl StructuralPartialEq for RegistrationSurface