use serde::{Deserialize, Serialize};
use url::Url;
#[derive(Debug, Serialize, Deserialize)]
pub enum Query {
Url(Url),
Scp(ScpPath),
Abbrev(AbbrevUrl),
}
#[derive(Debug, Serialize, Deserialize)]
pub struct ScpPath {
pub host: String,
pub username: String,
pub path: String,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct AbbrevUrl {
pub username: String,
pub path: String,
}
#[derive(Debug, Serialize, Deserialize, Copy, Clone)]
pub enum Scheme {
#[serde(rename = "http")]
Http,
#[serde(rename = "https")]
Https,
#[serde(rename = "git")]
Git,
#[serde(rename = "ssh")]
Ssh,
}
mod abbrev;
mod inner;
mod scheme;
mod scp;