delopay 0.2.1

Official Rust SDK for the DeloPay payments API
Documentation
//! The poll status model.

use serde::Deserialize;
use serde_json::Value;

use crate::core::models::common::PollStatus;

/// Status of an asynchronous operation, as returned by `Poll::status`.
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct PollStatusResponse {
    /// The poll ID being reported on.
    pub poll_id: String,
    /// Current status: `"pending"`, `"completed"`, or `"not_found"`.
    pub status: PollStatus,
    /// Any additional response fields not modeled above.
    #[serde(flatten)]
    pub extra: serde_json::Map<String, Value>,
}