Struct docker_compose::v2::GitUrl [] [src]

pub struct GitUrl { /* fields omitted */ }

URL of a Git repository. Git repositories may be specified as either ordinary http or https URLs, or as scp-style remote directory specifiers.

One of the goals behind this class is to be able to use it as an "enhanced string", much like PathBuf, that can be passed to various APIs using conversion via AsRef and From. So we implement plenty of conversions, plus Ord so we can be used as a key in a BTreeMap.

Methods

impl GitUrl
[src]

Would docker-compose interpret this string as a URL? We check against a list of known prefixes that trigger URL intepretation in docker-compose.

Create a GitUrl from the specified string. Will only return an error if should_treat_as_url returns false.

Convert a GitUrl to a regular url::Url object.

Trait Implementations

impl Debug for GitUrl
[src]

Formats the value using the given formatter.

impl Clone for GitUrl
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for GitUrl
[src]

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

This method tests for !=.

impl Eq for GitUrl
[src]

impl PartialOrd for GitUrl
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for GitUrl
[src]

This method returns an Ordering between self and other. Read more

impl Display for GitUrl
[src]

Formats the value using the given formatter.

impl AsRef<str> for GitUrl
[src]

Performs the conversion.

impl AsRef<OsStr> for GitUrl
[src]

Convert to an &OsStr, which makes it easier to use APIs like std::process::Command that take AsRef<OsStr> for their arguments.

Performs the conversion.