Struct rgb::prelude::Consignment [−][src]
pub struct Consignment { pub genesis: Genesis, pub endpoints: ConsignmentEndpoints, pub state_transitions: TransitionData, pub state_extensions: ExtensionData, // some fields omitted }
Fields
genesis: Genesis
endpoints: ConsignmentEndpoints
state_transitions: TransitionData
state_extensions: ExtensionData
Implementations
impl Consignment
[src]
impl Consignment
[src]pub fn with(
genesis: Genesis,
endpoints: ConsignmentEndpoints,
state_transitions: TransitionData,
state_extensions: ExtensionData
) -> Consignment
[src]
genesis: Genesis,
endpoints: ConsignmentEndpoints,
state_transitions: TransitionData,
state_extensions: ExtensionData
) -> Consignment
pub fn id(&self) -> ConsignmentId
[src]
pub fn version(&self) -> u16
[src]
pub fn txids(&self) -> BTreeSet<Txid>
[src]
pub fn node_ids(&self) -> BTreeSet<NodeId>
[src]
pub fn validate<R: TxResolver>(&self, schema: &Schema, resolver: R) -> Status
[src]
pub fn finalize(
&mut self,
expose: &BTreeSet<SealEndpoint>,
contract_id: ContractId
) -> usize
[src]
&mut self,
expose: &BTreeSet<SealEndpoint>,
contract_id: ContractId
) -> usize
pub fn reveal_seals<'a>(
&mut self,
known_seals: impl Iterator<Item = &'a OutpointReveal> + Clone
) -> usize
[src]
pub fn reveal_seals<'a>(
&mut self,
known_seals: impl Iterator<Item = &'a OutpointReveal> + Clone
) -> usize
[src]Reveals previously known seal information (replacing blind UTXOs with unblind ones). Function is used when a peer receives consignment containing concealed seals for the outputs owned by the peer
Trait Implementations
impl Clone for Consignment
[src]
impl Clone for Consignment
[src]fn clone(&self) -> Consignment
[src]
fn clone(&self) -> Consignment
[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 CommitEncodeWithStrategy for Consignment
[src]
impl CommitEncodeWithStrategy for Consignment
[src]type Strategy = UsingStrict
impl ConsensusCommit for Consignment
[src]
impl ConsensusCommit for Consignment
[src]type Commitment = ConsignmentId
fn consensus_commit(&self) -> Self::Commitment
fn consensus_verify(&self, commitment: &Self::Commitment) -> bool
impl Debug for Consignment
[src]
impl Debug for Consignment
[src]impl<'de> Deserialize<'de> for Consignment
[src]
impl<'de> Deserialize<'de> for Consignment
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Display for Consignment
[src]
impl Display for Consignment
[src]impl FromStr for Consignment
[src]
impl FromStr for Consignment
[src]impl PartialEq<Consignment> for Consignment
[src]
impl PartialEq<Consignment> for Consignment
[src]fn eq(&self, other: &Consignment) -> bool
[src]
fn eq(&self, other: &Consignment) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &Consignment) -> bool
[src]
fn ne(&self, other: &Consignment) -> bool
[src]This method tests for !=
.
impl Serialize for Consignment
[src]
impl Serialize for Consignment
[src]impl Strategy for Consignment
[src]
impl Strategy for Consignment
[src]impl Strategy for Consignment
[src]
impl Strategy for Consignment
[src]impl StrictDecode for Consignment
[src]
impl StrictDecode for Consignment
[src]impl StrictEncode for Consignment
[src]
impl StrictEncode for Consignment
[src]impl Eq for Consignment
[src]
impl StructuralEq for Consignment
[src]
impl StructuralPartialEq for Consignment
[src]
Auto Trait Implementations
impl RefUnwindSafe for Consignment
impl Send for Consignment
impl Sync for Consignment
impl Unpin for Consignment
impl UnwindSafe for Consignment
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> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
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
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,