pub struct ParserArtifactIdentity(/* private fields */);Expand description
Authenticated identity of one complete verified platform-pack artifact.
This is the BLAKE3 of the exact immutable artifact-manifest bytes, which in turn bind the worker, logical capability manifest, and grammar payloads. It is not the identity of a grammar currently loaded into the worker.
Implementations§
Source§impl ParserArtifactIdentity
impl ParserArtifactIdentity
Sourcepub const fn new(digest: ParserContentDigest) -> Self
pub const fn new(digest: ParserContentDigest) -> Self
Construct a pack-artifact identity from its authenticated BLAKE3 digest.
Sourcepub const fn digest(&self) -> &ParserContentDigest
pub const fn digest(&self) -> &ParserContentDigest
Borrow the canonical platform-pack artifact digest.
Trait Implementations§
Source§impl Clone for ParserArtifactIdentity
impl Clone for ParserArtifactIdentity
Source§fn clone(&self) -> ParserArtifactIdentity
fn clone(&self) -> ParserArtifactIdentity
Returns a duplicate of the value. Read more
1.0.0 · 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 ParserArtifactIdentity
impl Debug for ParserArtifactIdentity
Source§impl<'de> Deserialize<'de> for ParserArtifactIdentity
impl<'de> Deserialize<'de> for ParserArtifactIdentity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ParserArtifactIdentity
impl Hash for ParserArtifactIdentity
Source§impl PartialEq for ParserArtifactIdentity
impl PartialEq for ParserArtifactIdentity
Source§impl Serialize for ParserArtifactIdentity
impl Serialize for ParserArtifactIdentity
impl Eq for ParserArtifactIdentity
impl StructuralPartialEq for ParserArtifactIdentity
Auto Trait Implementations§
impl Freeze for ParserArtifactIdentity
impl RefUnwindSafe for ParserArtifactIdentity
impl Send for ParserArtifactIdentity
impl Sync for ParserArtifactIdentity
impl Unpin for ParserArtifactIdentity
impl UnwindSafe for ParserArtifactIdentity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.