foundation_deployment_digitalocean 0.1.3

DigitalOcean API v2 client — droplet provisioning and SSH keys
//! Shared types for digitalocean (used by multiple groups).
//!
//! Generated by `cargo run --bin ewe_platform gen_api`.
//! DO NOT EDIT MANUALLY.

// Re-export common API types from foundation_deployment
pub use foundation_deployment::providers::common::{
    read_error_body, send_bytes, send_checked, send_json, send_json_lines, send_without_body,
    with_raw_body, ApiClient, BodyLimits, ByteStream, JsonLinesStream,
};
pub use foundation_deployment::providers::common::{
    ApiError, ApiPending, ApiResponse, BoxedSendExecutionAction, Empty, Operation,
};

// Imports for shared resource types
use foundation_macros::JsonHash;
use serde::{Deserialize, Serialize};

// =============================================================================
// SHARED RESOURCE TYPES
// =============================================================================

// =============================================================================
// SHARED SHAPES
// =============================================================================

/// A shape 2 generated types share.
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DropletIdArgs {
    /// Path parameter: `droplet_id`.
    pub droplet_id: String,
}

/// A shape 2 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct MetaObject {
    /// `meta` property.
    pub meta: serde_json::Value,
}

/// A shape 2 generated types share.
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct PagesObject {
    /// `pages` property.
    pub pages: Option<serde_json::Value>,
}