Enum rhq_core::url::Query
[−]
[src]
pub enum Query {
Url(Url),
Scp {
username: String,
host: String,
path: String,
},
Path(Vec<String>),
}Represents query from user.
Available patterns are:
<scheme>://[<username>[:<password>]@]<host>/<path-to-repo>.git- Available schemes are:
http[s],sshandgit.
- Available schemes are:
<username>@<host>:<path-to-repo>- Equivalent to
ssh://<username>@<host>/<path-to-repo>.git
- Equivalent to
<path-to-repo>
Variants
Url(Url)ScpFields of Scp
username: String | |
host: String | |
path: String |
Path(Vec<String>)
Methods
impl Query[src]
fn host(&self) -> Option<&str>[src]
Returns the host name if available.