pub struct ProofId(/* private fields */);Expand description
Bandwidth proof identifier
A strongly-typed wrapper around proof identifiers to prevent mixing with other ID types.
§Examples
use chie_shared::ProofId;
let proof_id = ProofId::new("proof_abc123");
assert_eq!(proof_id.as_str(), "proof_abc123");Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProofId
impl<'de> Deserialize<'de> for ProofId
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
impl Eq for ProofId
impl StructuralPartialEq for ProofId
Auto Trait Implementations§
impl Freeze for ProofId
impl RefUnwindSafe for ProofId
impl Send for ProofId
impl Sync for ProofId
impl Unpin for ProofId
impl UnwindSafe for ProofId
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