pub struct Proof { /* private fields */ }
Expand description
Serialized Proof
A signed proof containing some signed Content
Implementations
sourceimpl Proof
impl Proof
pub fn from_parts(body: String, signature: String) -> Result<Self, Error>
pub fn from_legacy_parts(
body: String,
signature: String,
type_name: String
) -> Result<Self, Error>
pub fn body(&self) -> &str
pub fn signature(&self) -> &str
pub fn digest(&self) -> &[u8; 32]
pub fn parse_content<T: ContentDeserialize>(&self) -> Result<T, Error>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Proof
impl Send for Proof
impl Sync for Proof
impl Unpin for Proof
impl UnwindSafe for Proof
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more