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

A regular local directory.

A Git repository, specified using any of the usual git repository syntaxes.

Methods

impl Context
[src]

[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");

[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]

[src]

Formats the value using the given formatter. Read more

impl Clone for Context
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Context
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Context
[src]

impl FromStr for Context
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl Display for Context
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Context

impl Sync for Context