Struct Diagnostic Receipt
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.
pub struct DiagnosticReceipt {
pub submission_sequence: u64,
pub status: i32,
pub host_sequence: u64,
pub evidence: i32,
pub component: u32,
pub code_count: u32,
pub reason: String,
}
Fields
submission_sequence: u64
status: i32
host_sequence: u64
evidence: i32
component: u32
code_count: u32
Code handles are one-based positions in the admitted registration.
reason: String
Fixed safe reason, never source error text or request payload.
Implementations
impl DiagnosticReceipt
impl DiagnosticReceipt
status
pub fn status(&self) -> DiagnosticReceiptStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
set_status
pub fn set_status(&mut self, value: DiagnosticReceiptStatus)
Sets status to the provided enum value.
evidence
pub fn evidence(&self) -> DiagnosticEvidenceRetention
Returns the enum value of evidence, or the default if the field is set to an invalid enum value.
set_evidence
pub fn set_evidence(&mut self, value: DiagnosticEvidenceRetention)
Sets evidence to the provided enum value.
Trait Implementations
impl Clone for DiagnosticReceipt
impl Clone for DiagnosticReceipt
clone
fn clone(&self) -> DiagnosticReceipt
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for DiagnosticReceipt
impl Debug for DiagnosticReceipt
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl Default for DiagnosticReceipt
impl Default for DiagnosticReceipt
default
fn default() -> DiagnosticReceipt
impl Hash for DiagnosticReceipt
impl Hash for DiagnosticReceipt
hash
fn hash<__H>(&self, state: &mut __H)where
__H: Hasher,
hash_slice
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,
impl Message for DiagnosticReceipt
impl Message for DiagnosticReceipt
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 PartialEq for DiagnosticReceipt
impl PartialEq for DiagnosticReceipt
eq
fn eq(&self, other: &DiagnosticReceipt) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Eq for DiagnosticReceipt
impl Eq for DiagnosticReceipt
impl StructuralPartialEq for DiagnosticReceipt
impl StructuralPartialEq for DiagnosticReceipt