Enum Scope Type

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 ScopeType {
2 Unspecified = 0,
3 Agent = 1,
4 Function = 2,
5 Tool = 3,
6 Llm = 4,
7 Retriever = 5,
8 Embedder = 6,
9 Reranker = 7,
10 Guardrail = 8,
11 Evaluator = 9,
12 Custom = 10,
13 Unknown = 11,
14}

Variants

Unspecified = 0

Unspecified = 0

Agent = 1

Agent = 1

Function = 2

Function = 2

Tool = 3

Tool = 3

Llm = 4

Llm = 4

Retriever = 5

Retriever = 5

Embedder = 6

Embedder = 6

Reranker = 7

Reranker = 7

Guardrail = 8

Guardrail = 8

Evaluator = 9

Evaluator = 9

Custom = 10

Custom = 10

Unknown = 11

Unknown = 11

Implementations

impl ScopeType

impl ScopeType

is_valid

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of ScopeType.

from_i32

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

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

impl ScopeType

impl ScopeType

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 ScopeType

impl Clone for ScopeType

clone

fn clone(&self) -> ScopeType

clone_from

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

impl Debug for ScopeType

impl Debug for ScopeType

fmt

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

impl Default for ScopeType

impl Default for ScopeType

default

fn default() -> ScopeType

impl From<ScopeType> for i32

impl From<ScopeType> for i32

from

fn from(value: ScopeType) -> i32

impl Hash for ScopeType

impl Hash for ScopeType

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 ScopeType

impl Ord for ScopeType

cmp

fn cmp(&self, other: &ScopeType) -> 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 ScopeType

impl PartialEq for ScopeType

eq

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

ne

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

impl PartialOrd for ScopeType

impl PartialOrd for ScopeType

partial_cmp

fn partial_cmp(&self, other: &ScopeType) -> 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 ScopeType

impl TryFrom<i32> for ScopeType

Error

type Error = UnknownEnumValue

try_from

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

impl Copy for ScopeType

impl Copy for ScopeType

impl Eq for ScopeType

impl Eq for ScopeType

impl StructuralPartialEq for ScopeType

impl StructuralPartialEq for ScopeType