pub struct SignedContract {
pub contract: Contract,
pub signature: Signature,
}
Expand description
A contract of predicates whose content address has been signed.
For a shorthand constructor, see the downstream
essential_sign::contract::sign
function.
Fields§
§contract: Contract
The contract of predicates whose content address has been signed.
signature: Signature
A signature over the contract’s content address.
This signature must be produced by signing the contract’s
ContentAddress
. The contract’s
content address can be produced using one of the downstream
essential_hash::contract_addr
functions.
Trait Implementations§
Source§impl Clone for SignedContract
impl Clone for SignedContract
Source§fn clone(&self) -> SignedContract
fn clone(&self) -> SignedContract
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 SignedContract
impl Debug for SignedContract
Source§impl<'de> Deserialize<'de> for SignedContract
impl<'de> Deserialize<'de> for SignedContract
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 SignedContract
impl Hash for SignedContract
Source§impl Ord for SignedContract
impl Ord for SignedContract
Source§fn cmp(&self, other: &SignedContract) -> Ordering
fn cmp(&self, other: &SignedContract) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SignedContract
impl PartialEq for SignedContract
Source§impl PartialOrd for SignedContract
impl PartialOrd for SignedContract
Source§impl Serialize for SignedContract
impl Serialize for SignedContract
impl Eq for SignedContract
impl StructuralPartialEq for SignedContract
Auto Trait Implementations§
impl Freeze for SignedContract
impl RefUnwindSafe for SignedContract
impl Send for SignedContract
impl Sync for SignedContract
impl Unpin for SignedContract
impl UnwindSafe for SignedContract
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