pub enum Scheme {
    File,
    Git,
    Ssh,
    Http,
    Https,
    Ext(String),
}Expand description
A scheme or protocol for use in a Url.
It defines how to talk to a given repository.
Variants§
File
A local resource that is accessible on the current host.
Git
A git daemon, like File over TCP/IP.
Ssh
Launch git-upload-pack through an ssh tunnel.
Http
Use the HTTP protocol to talk to git servers.
Https
Use the HTTPS protocol to talk to git servers.
Ext(String)
Any other protocol or transport that isn’t known at compile time.
It’s used to support plug-in transports.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Scheme
 
impl<'de> Deserialize<'de> for Scheme
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Scheme
 
impl Ord for Scheme
source§impl PartialEq<Scheme> for Scheme
 
impl PartialEq<Scheme> for Scheme
source§impl PartialOrd<Scheme> for Scheme
 
impl PartialOrd<Scheme> for Scheme
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read more