Struct op_contracts::manager::AddressManager
source · pub struct AddressManager {
pub deployment_dir: PathBuf,
}
Expand description
AddressManager
The address manger.
Fields§
§deployment_dir: PathBuf
The path to the deployment directory.
Implementations§
source§impl AddressManager
impl AddressManager
sourcepub fn get_address(&self, contract: &str) -> Result<Address>
pub fn get_address(&self, contract: &str) -> Result<Address>
Returns the address of the given contract.
Trait Implementations§
source§impl Clone for AddressManager
impl Clone for AddressManager
source§fn clone(&self) -> AddressManager
fn clone(&self) -> AddressManager
Returns a copy 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 AddressManager
impl Debug for AddressManager
source§impl Default for AddressManager
impl Default for AddressManager
source§fn default() -> AddressManager
fn default() -> AddressManager
Returns the “default value” for a type. Read more
source§impl Hash for AddressManager
impl Hash for AddressManager
source§impl PartialEq for AddressManager
impl PartialEq for AddressManager
source§fn eq(&self, other: &AddressManager) -> bool
fn eq(&self, other: &AddressManager) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AddressManager
impl StructuralEq for AddressManager
impl StructuralPartialEq for AddressManager
Auto Trait Implementations§
impl RefUnwindSafe for AddressManager
impl Send for AddressManager
impl Sync for AddressManager
impl Unpin for AddressManager
impl UnwindSafe for AddressManager
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