Enum compose_yml::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]
pub fn new<S: AsRef<str>>(s: S) -> Context
[src]
Construct a new Context from a string, identifying it as either a local path or a remote git repository.
use compose_yml::v2 as dc; dc::Context::new("https://github.com/docker/docker.git"); dc::Context::new("src/myapp");
pub fn without_repository_subdirectory(&self) -> Context
[src]
Returns a new Context which is the same as the this one, but without any subdirectory part
Trait Implementations
impl Debug for Context
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Context
[src]
fn clone(&self) -> Context
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Context
[src]
fn eq(&self, __arg_0: &Context) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Context) -> bool
[src]
This method tests for !=
.
impl Eq 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>
[src]
Parses a string s
to return a value of this type. Read more