Enum docker_compose::v2::Context
[−]
[src]
pub enum Context { Dir(PathBuf), GitUrl(GitUrl), }
Either a local directory path, or a Git-format "URL" (not necessarily a real URL, alas).
Variants
Dir(PathBuf)
A regular local directory.
GitUrl(GitUrl)
A Git repository, specified using any of the usual git repository syntaxes.
Methods
impl Context
[src]
fn new<S: AsRef<str>>(s: S) -> Context
Construct a new Context from a string, identifying it as either a local path or a remote git repository.
use docker_compose::v2 as dc; dc::Context::new("https://github.com/docker/docker.git"); dc::Context::new("src/myapp");Run
Trait Implementations
impl Eq for Context
[src]
impl PartialEq for Context
[src]
fn eq(&self, __arg_0: &Context) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Context) -> bool
This method tests for !=
.
impl Clone for Context
[src]
fn clone(&self) -> Context
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Context
[src]
impl FromStr for Context
[src]
type Err = Void
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more