Struct rgb::contract::nodes::Extension [−][src]
pub struct Extension { /* fields omitted */ }
Implementations
impl Extension
[src]
impl Extension
[src]pub fn with(
extension_type: ExtensionType,
contract_id: ContractId,
metadata: Metadata,
parent_public_rights: ParentPublicRights,
owned_rights: OwnedRights,
public_rights: PublicRights,
script: SimplicityScript
) -> Self
[src]
extension_type: ExtensionType,
contract_id: ContractId,
metadata: Metadata,
parent_public_rights: ParentPublicRights,
owned_rights: OwnedRights,
public_rights: PublicRights,
script: SimplicityScript
) -> Self
Trait Implementations
impl ConcealState for Extension
[src]
impl ConcealState for Extension
[src]fn conceal_state_except(&mut self, seals: &Vec<Confidential>) -> usize
[src]
fn conceal_state(&mut self) -> usize
[src]
impl ConsensusCommit for Extension
[src]
impl ConsensusCommit for Extension
[src]type Commitment = NodeId
fn consensus_commit(&self) -> Self::Commitment
fn consensus_verify(&self, commitment: &Self::Commitment) -> bool
impl<'de> Deserialize<'de> for Extension
[src]
impl<'de> Deserialize<'de> for Extension
[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 IntoRevealed for Extension
[src]
impl IntoRevealed for Extension
[src]fn into_revealed(self, other: Self) -> Result<Self, Error>
[src]
impl Node for Extension
[src]
impl Node for Extension
[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 StrictDecode for Extension
[src]
impl StrictDecode for Extension
[src]impl StrictEncode for Extension
[src]
impl StrictEncode for Extension
[src]impl Eq for Extension
[src]
impl StructuralEq for Extension
[src]
impl StructuralPartialEq for Extension
[src]
Auto Trait Implementations
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
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>,