#[non_exhaustive]pub struct SettingsCredentials {
pub generation: u64,
pub refs: Vec<String>,
}Expand description
The vault references a module’s approved settings name, attested on a
route.bind to the vault so it can serve exactly those keys to that module.
refs lists every vault_ref under an x-ck-kind: credential_ref value in
the module’s approved effective settings, without duplicates and sorted
bytewise. generation is the configuration store’s approved revision they
were read from; it only rises, and two attestations with the same generation
carry the same refs. The daemon leaves the member out on an install whose
settings are not approved (an unstamped install), so its absence means “no
approved settings”, never “no keys”; an empty refs means “no keys”.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.generation: u64§refs: Vec<String>Implementations§
Source§impl SettingsCredentials
impl SettingsCredentials
Sourcepub fn new<R: Into<String>>(
generation: u64,
refs: impl IntoIterator<Item = R>,
) -> Result<Self, CallerAttestationError>
pub fn new<R: Into<String>>( generation: u64, refs: impl IntoIterator<Item = R>, ) -> Result<Self, CallerAttestationError>
Sorts and deduplicates refs. Refuses a generation above 2^53-1, which
JavaScript and Swift readers could not represent exactly.