pub struct MemContractState { /* private fields */ }Expand description
Contract history accumulates raw data from the contract history, extracted from a series of consignments over the time. It does consensus ordering of the state data, but it doesn’t interpret or validates the state against the schema.
NB: MemContract provides an in-memory contract state used during contract
validation. It does not support filtering by witness transaction validity
and thus must not be used in any other cases in its explicit form. Pls see
MemContract instead.
Implementations§
Source§impl MemContractState
impl MemContractState
Sourcepub fn schema_id(&self) -> SchemaId
pub fn schema_id(&self) -> SchemaId
Method returning copy of MemContractState::schema_id field.
Sourcepub fn contract_id(&self) -> ContractId
pub fn contract_id(&self) -> ContractId
Method returning copy of MemContractState::contract_id field.
Sourcepub fn rights(
&self,
) -> &Confined<BTreeSet<OutputAssignment<VoidState>>, amplify::::collection::confinement::LargeOrdSet::{constant#0}, amplify::::collection::confinement::LargeOrdSet::{constant#1}>
pub fn rights( &self, ) -> &Confined<BTreeSet<OutputAssignment<VoidState>>, amplify::::collection::confinement::LargeOrdSet::{constant#0}, amplify::::collection::confinement::LargeOrdSet::{constant#1}>
Method borrowing MemContractState::rights field.
Sourcepub fn fungibles(
&self,
) -> &Confined<BTreeSet<OutputAssignment<RevealedValue>>, amplify::::collection::confinement::LargeOrdSet::{constant#0}, amplify::::collection::confinement::LargeOrdSet::{constant#1}>
pub fn fungibles( &self, ) -> &Confined<BTreeSet<OutputAssignment<RevealedValue>>, amplify::::collection::confinement::LargeOrdSet::{constant#0}, amplify::::collection::confinement::LargeOrdSet::{constant#1}>
Method borrowing MemContractState::fungibles field.
Sourcepub fn data(
&self,
) -> &Confined<BTreeSet<OutputAssignment<RevealedData>>, amplify::::collection::confinement::LargeOrdSet::{constant#0}, amplify::::collection::confinement::LargeOrdSet::{constant#1}>
pub fn data( &self, ) -> &Confined<BTreeSet<OutputAssignment<RevealedData>>, amplify::::collection::confinement::LargeOrdSet::{constant#0}, amplify::::collection::confinement::LargeOrdSet::{constant#1}>
Method borrowing MemContractState::data field.
Source§impl MemContractState
impl MemContractState
pub fn new(schema: &Schema, contract_id: ContractId) -> MemContractState
Trait Implementations§
Source§impl Clone for MemContractState
impl Clone for MemContractState
Source§fn clone(&self) -> MemContractState
fn clone(&self) -> MemContractState
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 MemContractState
impl Debug for MemContractState
Source§impl<'de> Deserialize<'de> for MemContractState
impl<'de> Deserialize<'de> for MemContractState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MemContractState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MemContractState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MemContractState
impl PartialEq for MemContractState
Source§impl Serialize for MemContractState
impl Serialize for MemContractState
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl StrictDecode for MemContractState
impl StrictDecode for MemContractState
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<MemContractState, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for MemContractState
impl StrictDumb for MemContractState
fn strict_dumb() -> MemContractState
Source§impl StrictEncode for MemContractState
impl StrictEncode for MemContractState
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictStruct for MemContractState
impl StrictStruct for MemContractState
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for MemContractState
impl StrictType for MemContractState
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_STORAGE
fn strict_name() -> Option<TypeName>
impl Eq for MemContractState
impl StrictProduct for MemContractState
impl StructuralPartialEq for MemContractState
Auto Trait Implementations§
impl Freeze for MemContractState
impl RefUnwindSafe for MemContractState
impl Send for MemContractState
impl Sync for MemContractState
impl Unpin for MemContractState
impl UnwindSafe for MemContractState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.