Skip to main content

Crate cloud_sdk

Crate cloud_sdk 

Source
Expand description

§cloud-sdk

Provider-neutral foundation crate for the cloud-sdk workspace.

This crate belongs to the main cloud-sdk project. It contains shared, no_std-first domains that provider crates can use without pulling in HTTP clients, TLS, async runtimes, token storage, serde, or filesystem dependencies.

Most Hetzner users should read and depend on cloud-sdk-hetzner. That crate is the main documentation surface for Hetzner Cloud, DNS, security, and Storage Box API planning.

§Install

[dependencies]
cloud-sdk = "0.3.0"

§Example

use cloud_sdk::{ApiFamily, Method, Provider};

let provider = Provider::Hetzner;
let family = ApiFamily::Cloud;
let method = Method::Get;

assert_eq!(provider, Provider::Hetzner);
assert_eq!(family, ApiFamily::Cloud);
assert_eq!(method, Method::Get);

§Scope

  • Default features are empty.
  • The crate is no_std by default.
  • It is provider-neutral and intentionally small.
  • Provider-specific examples live in provider crates such as cloud-sdk-hetzner.

Enums§

ApiFamily
Provider API family.
Method
HTTP method for a provider operation.
Provider
Cloud provider namespace.