Struct hosted_git_info::HostedGitInfo [−][src]
pub struct HostedGitInfo { /* fields omitted */ }Expand description
The parsed information from a git hosting URL.
Implementations
Parses a URL string and returns a HostedGitInfo struct, if successful. If parsing fails, a ParseError will be returned.
The name of the user or organization on the git host.
This is using an Option because some hosting providers allow projects that are not scoped to a particular user or organization.
Example: https://github.com/Turbo87/hosted-git-info-rs.git → Turbo87
The authentication part of the URL, if it exists.
Format: <USER>[:<PASSWORD>]
Example: https://user:password@github.com/foo/bar.git → user:password
The name of the project on the git host.
Example: https://github.com/Turbo87/hosted-git-info-rs.git → hosted-git-info-rs
The branch, tag, commit, … part of the URL, if it exists.
Example: https://github.com/Turbo87/hosted-git-info-rs.git#rust-is-awesome → rust-is-awesome
The original URL type (shortcut, https, ssh, …).
Example: https://github.com/Turbo87/hosted-git-info-rs.git → Https
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for HostedGitInfo
impl Send for HostedGitInfo
impl Sync for HostedGitInfo
impl Unpin for HostedGitInfo
impl UnwindSafe for HostedGitInfo
Blanket Implementations
Mutably borrows from an owned value. Read more