Expand description
Cloudflare control-plane API primitives used by any project that needs to manage Cloudflare resources (DNS records, Pages projects, Access applications, Workers routes, …) from a Rust host tool.
The crate exposes:
CloudflareError— error type shared across every API call.CfApiResponse/CfApiError— the common{success, errors, result}envelope Cloudflare wraps every response in.TokenSource— marker indicating whether the caller holds a proper API token (full permissions) or a wrangler-derived OAuth token (limited to zones the user owns through dashboard login).
Concrete high-level clients (DNS record CRUD, Access app lifecycle, Pages project creation) compose these primitives. This crate is deliberately kept as a small, stable kernel so that project-specific orchestration can live in downstream crates without pulling the primitives in through a private vendoring path.
Structs§
- CfApi
Error - Cloudflare API error entry from a response envelope.
- CfApi
Response - Standard Cloudflare API response envelope:
{ success, errors, result }.
Enums§
- Cloudflare
Error - Errors returned by Cloudflare admin operations.
- Token
Source - Where the API token came from. Affects which endpoints will succeed against the authenticated account.