pub struct DagCborCidVerification { /* private fields */ }Expand description
Validated CID comparison with canonical, input-independent diagnostics.
Implementations§
Source§impl DagCborCidVerification
impl DagCborCidVerification
Sourcepub const fn status(&self) -> CidVerificationStatus
pub const fn status(&self) -> CidVerificationStatus
Return the exact verification outcome.
Sourcepub fn expected_cid(&self) -> &str
pub fn expected_cid(&self) -> &str
Return the canonical CID computed from the block.
Sourcepub fn actual_cid(&self) -> &str
pub fn actual_cid(&self) -> &str
Return the parsed CID in canonical form, or empty for invalid text.
Sourcepub fn into_parts(self) -> (CidVerificationStatus, String, String)
pub fn into_parts(self) -> (CidVerificationStatus, String, String)
Transfer the canonical strings to a transport adapter without copying.
Auto Trait Implementations§
impl Freeze for DagCborCidVerification
impl RefUnwindSafe for DagCborCidVerification
impl Send for DagCborCidVerification
impl Sync for DagCborCidVerification
impl Unpin for DagCborCidVerification
impl UnsafeUnpin for DagCborCidVerification
impl UnwindSafe for DagCborCidVerification
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