pub trait ContractStateRead: ContractStateAccess {
// Required methods
fn contract_id(&self) -> ContractId;
fn schema_id(&self) -> SchemaId;
fn witness_ord(&self, witness_id: Txid) -> Option<WitnessOrd>;
fn rights_all(&self) -> impl Iterator<Item = &OutputAssignment<VoidState>>;
fn fungible_all(
&self,
) -> impl Iterator<Item = &OutputAssignment<RevealedValue>>;
fn data_all(&self) -> impl Iterator<Item = &OutputAssignment<RevealedData>>;
}Required Methods§
fn contract_id(&self) -> ContractId
fn schema_id(&self) -> SchemaId
fn witness_ord(&self, witness_id: Txid) -> Option<WitnessOrd>
fn rights_all(&self) -> impl Iterator<Item = &OutputAssignment<VoidState>>
fn fungible_all(&self) -> impl Iterator<Item = &OutputAssignment<RevealedValue>>
fn data_all(&self) -> impl Iterator<Item = &OutputAssignment<RevealedData>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.