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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)