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 PartialOrd for Scheme
impl PartialOrd for Scheme
impl Eq for Scheme
impl StructuralPartialEq for Scheme
Auto Trait Implementations§
impl Freeze for Scheme
impl RefUnwindSafe for Scheme
impl Send for Scheme
impl Sync for Scheme
impl Unpin for Scheme
impl UnwindSafe for Scheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more