pub enum AliasEntry {
Zone {
sha256: String,
},
Link {
target: String,
target_sha256: String,
materialised: LinkMode,
},
}Expand description
One identifier’s entry in the alias map.
Variants§
Zone
A canonical zone: the SHA-256 of its compiled TZif file.
Link
A link (alias) to a canonical zone, with the target’s hash and how it was materialised.
Fields
Implementations§
Source§impl AliasEntry
impl AliasEntry
Sourcepub fn kind_str(&self) -> &'static str
pub fn kind_str(&self) -> &'static str
The alias-map "kind" vocabulary ("zone" / "link"). T17.2 (CONTRACT.TYPING): the kind
field was previously a hand-emitted string literal inside the JSON format string; the variant is
the finite claim (“is this identifier a canonical zone or an alias?”), so the literal is owned
here and rendered through this accessor — a new kind value cannot enter the alias map as prose.
Trait Implementations§
Source§impl Clone for AliasEntry
impl Clone for AliasEntry
Source§fn clone(&self) -> AliasEntry
fn clone(&self) -> AliasEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AliasEntry
impl Debug for AliasEntry
impl Eq for AliasEntry
Source§impl PartialEq for AliasEntry
impl PartialEq for AliasEntry
Source§fn eq(&self, other: &AliasEntry) -> bool
fn eq(&self, other: &AliasEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AliasEntry
Auto Trait Implementations§
impl Freeze for AliasEntry
impl RefUnwindSafe for AliasEntry
impl Send for AliasEntry
impl Sync for AliasEntry
impl Unpin for AliasEntry
impl UnsafeUnpin for AliasEntry
impl UnwindSafe for AliasEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more