Struct CatalogReport
pub struct CatalogReport {Show 13 fields
pub ok: bool,
pub installable: bool,
pub registry_id: Option<String>,
pub name: Option<String>,
pub profile: Option<Profile>,
pub serial: Option<u64>,
pub issued_at: Option<u64>,
pub expires: Option<u64>,
pub expired: bool,
pub bots: usize,
pub sha3: Option<String>,
pub seen: Option<SeenInput>,
pub errors: Vec<ErrorReport>,
}Expand description
The result of verifyCatalog. When ok is false, only errors is meaningful. When ok
is true but installable is false, the catalog has expired: show it with a warning,
apply its advisories, yanks and revoked keys, and never install or update from it
(errors then holds E-CATALOG-EXPIRED).
Fields§
§ok: boolWhether the catalog is authentic and passed every check before expiry.
installable: boolWhether installs and updates may use it: ok and not expired.
registry_id: Option<String>The registry id (the pinned key’s id), base64url.
name: Option<String>The registry’s own name: a claim, shown with the id.
profile: Option<Profile>The registry’s own profile: a claim, never a badge.
serial: Option<u64>The catalog’s serial.
issued_at: Option<u64>When it was signed, Unix seconds.
expires: Option<u64>When it expires, Unix seconds.
expired: boolWhether it has expired: browse only, never install or update from it.
bots: usizeHow many bots it lists.
sha3: Option<String>SHA3-256 of the catalog bytes, hex.
seen: Option<SeenInput>What to store for this registry (pass it back as seenJson next time).
errors: Vec<ErrorReport>What failed.
Implementations§
§impl CatalogReport
impl CatalogReport
pub fn failed(d: Diagnostic) -> CatalogReport
pub fn failed(d: Diagnostic) -> CatalogReport
A report of one failure.
Trait Implementations§
§impl Clone for CatalogReport
impl Clone for CatalogReport
§fn clone(&self) -> CatalogReport
fn clone(&self) -> CatalogReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more