Struct Remote Backend Config

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub struct RemoteBackendConfig {
    pub endpoint: Option<String>,
    pub config_id: Option<String>,
    pub config_ids: Vec<String>,
    pub headers: HashMap<String, String>,
    pub timeout_millis: u64,
}

Remote-backend settings for a hosted NeMo Guardrails service.

Fields

endpoint: Option<String>

Base URL for the remote Guardrails service.

config_id: Option<String>

One remote Guardrails config identifier.

config_ids: Vec<String>

Multiple remote Guardrails config identifiers to combine.

headers: HashMap<String, String>

Static request headers sent to the remote service.

timeout_millis: u64

Request timeout in milliseconds.

Trait Implementations

impl Clone for RemoteBackendConfig

impl Clone for RemoteBackendConfig

clone

fn clone(&self) -> RemoteBackendConfig

clone_from

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

impl Debug for RemoteBackendConfig

impl Debug for RemoteBackendConfig

fmt

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

impl Default for RemoteBackendConfig

impl Default for RemoteBackendConfig

default

fn default() -> Self

impl<'de> Deserialize<'de> for RemoteBackendConfig

impl<'de> Deserialize<'de> for RemoteBackendConfig

deserialize

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

impl EditorConfig for RemoteBackendConfig

impl EditorConfig for RemoteBackendConfig

editor_schema

fn editor_schema() -> &'static EditorSchema

impl Serialize for RemoteBackendConfig

impl Serialize for RemoteBackendConfig

serialize

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