pub trait IdentifiableContract: Encodable {
// Required method
fn contract_id(&self) -> ContractId;
}
Expand description
Anything representing a contract which thus has an associated ContractId
Required Methods§
fn contract_id(&self) -> ContractId
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.