GoodMemGoodMem
ReferenceSdkRustTypes

PingNotice

Rust struct goodmem::models::PingNotice: declaration, fields or variants, and implementations.

All types

Struct PingNotice

goodmem::models::PingNotice

Non-fatal notice emitted during a ping session

pub struct PingNotice {
    pub code: String,
    pub message: String,
    pub details: Option<BTreeMap<String, String>>,
}

Fields

code

pub code: String

Machine-readable notice identifier Wire name: code.

message

pub message: String

Human-readable notice message Wire name: message.

details

pub details: Option<BTreeMap<String, String>>

Additional contextual details Wire name: details.

Implementations

validate

pub fn validate(&self) -> crate::Result<()>

Validate the request before sending, without making an HTTP call.

Trait implementations

  • Clone (derived)
  • Default (derived)
  • PartialEq (derived)
  • Serialize (derived)
  • impl<'de> Deserialize<'de> for PingNotice
  • impl std::fmt::Debug for PingNotice

On this page