Struct commit_verify::multi_commit::MultiCommitItem [−][src]
pub struct MultiCommitItem { pub protocol: Option<ProtocolId>, pub message: Message, }
Expand description
Single item within a multi-message commitment, consisting of optional protocol information (if known) and the actual single message commitment
Fields
protocol: Option<ProtocolId>
Expand description
Protocol identifier, which may be hidden or absent for commitment placeholders
message: Message
Expand description
Message commitment (LNPBP-4 tagged hash of the message)
Implementations
impl MultiCommitItem
[src]
impl MultiCommitItem
[src]pub fn new(protocol: ProtocolId, message: Message) -> Self
[src]
pub fn new(protocol: ProtocolId, message: Message) -> Self
[src]Constructs multi-message commitment item for a given protocol
Trait Implementations
impl Clone for MultiCommitItem
[src]
impl Clone for MultiCommitItem
[src]fn clone(&self) -> MultiCommitItem
[src]
fn clone(&self) -> MultiCommitItem
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for MultiCommitItem
[src]
impl Debug for MultiCommitItem
[src]impl Display for MultiCommitItem
[src]
impl Display for MultiCommitItem
[src]impl Hash for MultiCommitItem
[src]
impl Hash for MultiCommitItem
[src]impl Ord for MultiCommitItem
[src]
impl Ord for MultiCommitItem
[src]impl PartialEq<MultiCommitItem> for MultiCommitItem
[src]
impl PartialEq<MultiCommitItem> for MultiCommitItem
[src]fn eq(&self, other: &MultiCommitItem) -> bool
[src]
fn eq(&self, other: &MultiCommitItem) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &MultiCommitItem) -> bool
[src]
fn ne(&self, other: &MultiCommitItem) -> bool
[src]This method tests for !=
.
impl PartialOrd<MultiCommitItem> for MultiCommitItem
[src]
impl PartialOrd<MultiCommitItem> for MultiCommitItem
[src]fn partial_cmp(&self, other: &MultiCommitItem) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &MultiCommitItem) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StrictDecode for MultiCommitItem
[src]
impl StrictDecode for MultiCommitItem
[src]impl StrictEncode for MultiCommitItem
[src]
impl StrictEncode for MultiCommitItem
[src]impl Copy for MultiCommitItem
[src]
impl Eq for MultiCommitItem
[src]
impl StructuralEq for MultiCommitItem
[src]
impl StructuralPartialEq for MultiCommitItem
[src]
Auto Trait Implementations
impl RefUnwindSafe for MultiCommitItem
impl Send for MultiCommitItem
impl Sync for MultiCommitItem
impl Unpin for MultiCommitItem
impl UnwindSafe for MultiCommitItem
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more