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

A regular local directory.

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

Methods

impl Context
[src]

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]

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

This method tests for !=.

impl Clone for Context
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Context
[src]

Formats the value using the given formatter.

impl FromStr for Context
[src]

The associated error which can be returned from parsing.

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

impl Display for Context
[src]

Formats the value using the given formatter.