GoodMemGoodMem
ReferenceSdkRustTypes

AdminDrainResponse

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

All types

Struct AdminDrainResponse

goodmem::models::AdminDrainResponse

pub struct AdminDrainResponse {
    pub state: Option<AdminDrainResponseState>,
    pub quiesced: bool,
    pub message: Option<String>,
}

Referenced types: AdminDrainResponseState.

Fields

state

pub state: Option<AdminDrainResponseState>

Lifecycle state reported after the drain request was processed. Wire name: state.

quiesced

pub quiesced: bool

Whether the server has reached the QUIESCED lifecycle state. Wire name: quiesced.

message

pub message: Option<String>

Human-readable status message describing the drain outcome. Wire name: message.

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

On this page