Struct rgb::contract::nodes::Transition [−][src]
pub struct Transition { /* fields omitted */ }
Implementations
impl Transition
[src]
impl Transition
[src]pub fn with(
transition_type: TransitionType,
metadata: Metadata,
parent_owned_rights: ParentOwnedRights,
owned_rights: OwnedRights,
public_rights: PublicRights,
script: SimplicityScript
) -> Self
[src]
transition_type: TransitionType,
metadata: Metadata,
parent_owned_rights: ParentOwnedRights,
owned_rights: OwnedRights,
public_rights: PublicRights,
script: SimplicityScript
) -> Self
Trait Implementations
impl AsAny for Transition
[src]
impl AsAny for Transition
[src]impl Clone for Transition
[src]
impl Clone for Transition
[src]fn clone(&self) -> Transition
[src]
fn clone(&self) -> Transition
[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 CommitEncode for Transition
[src]
impl CommitEncode for Transition
[src]impl ConcealSeals for Transition
[src]
impl ConcealSeals for Transition
[src]fn conceal_seals(&mut self, seals: &Vec<Confidential>) -> usize
[src]
impl ConcealState for Transition
[src]
impl ConcealState for Transition
[src]fn conceal_state_except(&mut self, seals: &Vec<Confidential>) -> usize
[src]
fn conceal_state(&mut self) -> usize
[src]
impl ConsensusCommit for Transition
[src]
impl ConsensusCommit for Transition
[src]type Commitment = NodeId
fn consensus_commit(&self) -> Self::Commitment
fn consensus_verify(&self, commitment: &Self::Commitment) -> bool
impl Debug for Transition
[src]
impl Debug for Transition
[src]impl Default for Transition
[src]
impl Default for Transition
[src]fn default() -> Transition
[src]
fn default() -> Transition
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for Transition
[src]
impl<'de> Deserialize<'de> for Transition
[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 Transition
[src]
impl Display for Transition
[src]impl From<Transition> for Bech32
[src]
impl From<Transition> for Bech32
[src]fn from(v: Transition) -> Self
[src]
fn from(v: Transition) -> Self
[src]Performs the conversion.
impl FromStr for Transition
[src]
impl FromStr for Transition
[src]impl IntoRevealed for Transition
[src]
impl IntoRevealed for Transition
[src]fn into_revealed(self, other: Self) -> Result<Self, Error>
[src]
impl Node for Transition
[src]
impl Node for Transition
[src]fn contract_id(&self) -> Option<ContractId>
[src]
fn contract_id(&self) -> Option<ContractId>
[src]Returns Option::Some
(
ContractId
)
, which is a hash of
genesis. Read more
fn transition_type(&self) -> Option<TransitionType>
[src]
fn transition_type(&self) -> Option<TransitionType>
[src]Returns Option::Some
(
TransitionType
)
for transitions or
Option::None
for genesis and extension node types Read more
fn extension_type(&self) -> Option<usize>
[src]
fn extension_type(&self) -> Option<usize>
[src]Returns Option::Some
(
ExtensionType
)
for extension nodes or
Option::None
for genesis and trate transitions Read more
fn parent_owned_rights(&self) -> &ParentOwnedRights
[src]
fn parent_public_rights(&self) -> &ParentPublicRights
[src]
fn metadata(&self) -> &Metadata
[src]
fn owned_rights(&self) -> &OwnedRights
[src]
fn owned_rights_mut(&mut self) -> &mut OwnedRights
[src]
fn public_rights(&self) -> &PublicRights
[src]
fn public_rights_mut(&mut self) -> &mut PublicRights
[src]
fn script(&self) -> &SimplicityScript
[src]
fn field_types(&self) -> Vec<FieldType>
[src]
fn owned_right_types(&self) -> BTreeSet<OwnedRightType>
[src]
fn owned_rights_by_type(&self, t: OwnedRightType) -> Option<&Assignments>
[src]
fn all_seal_definitions(&self) -> Vec<Confidential>
[src]
fn known_seal_definitions(&self) -> Vec<Revealed>
[src]
fn known_seal_definitions_by_type(
&self,
assignment_type: OwnedRightType
) -> Vec<Revealed>
[src]
&self,
assignment_type: OwnedRightType
) -> Vec<Revealed>
impl PartialEq<Transition> for Transition
[src]
impl PartialEq<Transition> for Transition
[src]fn eq(&self, other: &Transition) -> bool
[src]
fn eq(&self, other: &Transition) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &Transition) -> bool
[src]
fn ne(&self, other: &Transition) -> bool
[src]This method tests for !=
.
impl Serialize for Transition
[src]
impl Serialize for Transition
[src]impl StrictDecode for Transition
[src]
impl StrictDecode for Transition
[src]impl StrictEncode for Transition
[src]
impl StrictEncode for Transition
[src]impl TryFrom<Bech32> for Transition
[src]
impl TryFrom<Bech32> for Transition
[src]impl Eq for Transition
[src]
impl StructuralEq for Transition
[src]
impl StructuralPartialEq for Transition
[src]
Auto Trait Implementations
impl RefUnwindSafe for Transition
impl Send for Transition
impl Sync for Transition
impl Unpin for Transition
impl UnwindSafe for Transition
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> FromBech32 for T where
T: TryFrom<Bech32, Error = Error>,
[src]
impl<T> FromBech32 for T where
T: TryFrom<Bech32, Error = Error>,
[src]pub fn from_bech32(Bech32) -> Result<T, Error>
[src]
pub fn from_bech32(Bech32) -> Result<T, Error>
[src]Unwraps Bech32
enum data into a concrete type, if any, or fails with
Error::WrongType
otherwise 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>,