[][src]Enum repo_cli::Query

pub enum Query {
    Url(Url),
    Scp(ScpPath),
    Abbrev(AbbrevUrl),
}

Represents a input url from the user.

Available patterns are:

  • <scheme>://[<username>[:<password>]@]<host>/<path-to-repo>.git
    • Available schemes are: http[s], ssh and git.
    • Example: https://github.com/user/repo
  • <username>@<host>:<path-to-repo>
    • Equivalent to ssh://<username>@<host>/<path-to-repo>.git
  • <username>@<host>:<path-to-repo>
    • Equivalent to ssh://<username>@<host>/<path-to-repo>.git
  • <path-to-repo>

Variants

Url(Url)
Scp(ScpPath)
Abbrev(AbbrevUrl)

Methods

impl Query[src]

pub fn parse(s: &str) -> Result<Self>[src]

pub fn to_url(&self, config: &Config) -> Url[src]

Trait Implementations

impl Debug for Query[src]

impl<'de> Deserialize<'de> for Query[src]

impl FromStr for Query[src]

type Err = Error

The associated error which can be returned from parsing.

impl Serialize for Query[src]

Auto Trait Implementations

impl RefUnwindSafe for Query

impl Send for Query

impl Sync for Query

impl Unpin for Query

impl UnwindSafe for Query

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,