pub struct EdgeState {
pub configured: Option<bool>,
pub error: Option<String>,
pub freshness: Option<String>,
pub policy: Option<HashMap<String, String>>,
pub provider: Option<String>,
pub reach: Option<Vec<String>>,
pub status: Option<String>,
}Fields§
§configured: Option<bool>Configured is whether the edge holds credentials to act at all. False means every purge is a no-op.
error: Option<String>Error is the blocker, so an operator reads it instead of guessing at it.
freshness: Option<String>Freshness says, in one phrase, how long after a publish a reader sees it. It is the sentence an operator actually wants; the booleans above are how a machine reads the same fact.
policy: Option<HashMap<String, String>>Policy is the Cache-Control this edge serves each class of object with. It is DERIVED from the one canonical function, never a second copy: half the confusion when a publish looks stale is not knowing what the TTLs are, and reading them out of the source is not something an operator should have to do to answer "how long until this is live".
provider: Option<String>Provider is the CDN behind this edge, or "none". It is the first thing an operator wants and the only vendor name this API returns.
reach: Option<Vec<String>>Reach is the apexes a publish is invalidated on. A site is served on more than one — the site plane’s own and the first-party apex — and a purge that covers one of them looks identical from here to a purge that covers both.
status: Option<String>Status is "ok" when a publish reaches readers immediately, else "degraded".