Struct Credentials
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 Credentials {
pub activation_id: String,
pub auth_token: String,
}
Required on authenticated requests. Both strings must match the activation.
Fields
activation_id: String
Host-issued activation identity; the token is valid only for this activation.
auth_token: String
Host-issued secret token; never expose it in logs or callback arguments.
Trait Implementations
impl Clone for Credentials
impl Clone for Credentials
clone
fn clone(&self) -> Credentials
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for Credentials
impl Debug for Credentials
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for Credentials
impl Default for Credentials
default
fn default() -> Self
impl Hash for Credentials
impl Hash for Credentials
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 Message for Credentials
impl Message for Credentials
encoded_len
fn encoded_len(&self) -> usize
clear
fn clear(&mut self)
encode
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
encode_to_vec
fn encode_to_vec(&self) -> Vec<u8> where
Self: Sized,
encode_length_delimited
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
encode_length_delimited_to_vec
fn encode_length_delimited_to_vec(&self) -> Vec<u8> where
Self: Sized,
decode
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
decode_length_delimited
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
merge
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
merge_length_delimited
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
impl Name for Credentials
impl Name for Credentials
NAME
const NAME: &'static str = "Credentials"
PACKAGE
const PACKAGE: &'static str = "nvidia.nemo.relay.worker.v1"
full_name
fn full_name() -> String
type_url
fn type_url() -> String
impl PartialEq for Credentials
impl PartialEq for Credentials
eq
fn eq(&self, other: &Credentials) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Eq for Credentials
impl Eq for Credentials
impl StructuralPartialEq for Credentials
impl StructuralPartialEq for Credentials