pub struct ContractMapping {
pub address: String,
pub name: String,
pub debug_dir: PathBuf,
pub code_hash: Option<String>,
}Expand description
One entry of a contract mapping file: a deployed address and the directory holding the artifacts that describe its code.
Fields§
§address: String§name: String§debug_dir: PathBuf§code_hash: Option<String>The keccak-256 hash of the code the artifacts describe, when the file names it, so that two programs run at one address keep their own artifacts.
Trait Implementations§
Source§impl Clone for ContractMapping
impl Clone for ContractMapping
Source§impl Debug for ContractMapping
impl Debug for ContractMapping
impl Eq for ContractMapping
Source§impl PartialEq for ContractMapping
impl PartialEq for ContractMapping
impl StructuralPartialEq for ContractMapping
Auto Trait Implementations§
impl Freeze for ContractMapping
impl RefUnwindSafe for ContractMapping
impl Send for ContractMapping
impl Sync for ContractMapping
impl Unpin for ContractMapping
impl UnsafeUnpin for ContractMapping
impl UnwindSafe for ContractMapping
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