Struct git_url::Url [−][src]
pub struct Url {
pub scheme: Scheme,
pub user: Option<String>,
pub host: Option<String>,
pub port: Option<u16>,
pub path: BString,
}
Expand description
A URL with support for specialized git related capabilities.
Additionally there is support for deserialization and serialization
(see the Display::fmt()
implementation).
Fields
scheme: Scheme
The URL scheme.
user: Option<String>
The user to impersonate on the remote.
host: Option<String>
The host to which to connect. Localhost is implied if None
.
port: Option<u16>
The port to use when connecting to a host. If None
, standard ports depending on scheme
will be used.
path: BString
The path portion of the URL, usually the location of the git repository.
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Url
impl UnwindSafe for Url
Blanket Implementations
Mutably borrows from an owned value. Read more