fedimint_ln_common::contracts

Trait IdentifiableContract

Source
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§

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.

Implementors§