Skip to main content

SecretKind

Type Alias SecretKind 

Source
pub type SecretKind = String;
Expand description

Shape of a secret, as a namespaced string. Well-known kinds carry the std: prefix and are registered in ACT-CONSTANTS: “std:opaque” (one value), “std:basic” (username and password), “std:oauth2” (an access token, with expiry and scopes alongside it); third-party kinds use their own namespace. The kind determines which keys appear in secret.fields.

A string rather than an enum because every appearance is in a returned position: a new case in a closed enum would arrive at components built against the earlier version, which cannot lower it. Registering a kind therefore needs no WIT change and no version bump.

Aliased Type§

pub struct SecretKind { /* private fields */ }