pub struct Context {
pub project_path: PathBuf,
pub config: Config,
pub use_docker_host: bool,
pub docker_env_file: String,
pub rustup_dir: Option<String>,
}Fields§
§project_path: PathBuf§config: Config§use_docker_host: bool§docker_env_file: String§rustup_dir: Option<String>Implementations§
Source§impl Context
impl Context
pub fn load() -> Result<Context>
pub fn load_from_path<P: AsRef<Path>>(path: P) -> Result<Context>
pub fn workspace_dir(&self) -> Result<PathBuf>
pub fn contracts_path(&self) -> PathBuf
pub fn contracts_build_dir(&self) -> PathBuf
pub fn contracts_build_path(&self, env: BuildEnv) -> PathBuf
pub fn migrations_path(&self, env: DeployEnv) -> PathBuf
pub fn load_deployment(&self) -> Result<Deployment>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more