GoodMemGoodMem
ReferenceSdkRustTypes

AdminDrainRequest

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

All types

Struct AdminDrainRequest

goodmem::models::AdminDrainRequest

pub struct AdminDrainRequest {
    pub timeout_sec: Option<i32>,
    pub reason: Option<String>,
    pub wait_for_quiesce: Option<bool>,
}

Fields

timeout_sec

pub timeout_sec: Option<i32>

Maximum seconds to wait for the server to quiesce before returning. Wire name: timeoutSec.

reason

pub reason: Option<String>

Human-readable reason for initiating drain mode. Wire name: reason.

wait_for_quiesce

pub wait_for_quiesce: Option<bool>

If true, wait for in-flight requests to complete and the server to reach QUIESCED before responding. Wire name: waitForQuiesce.

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 AdminDrainRequest
  • impl std::fmt::Debug for AdminDrainRequest

On this page