pub struct SshInfo {
pub user_and_host: String,
pub path: String,
pub port: Option<String>,
}Expand description
SSH-shaped remote/endpoint URL parsed into the components git lfs env echoes back as SSH=<user_and_host>:<path>.
Fields§
§user_and_host: StringEither <user>@<host> if a user was present, or just <host>.
path: StringThe path portion — :foo/bar.git from git@host:foo/bar.git,
or /foo/bar.git from ssh://host/foo/bar.git (we keep
upstream’s exact form: leading / preserved for ssh://,
stripped for bare SSH).
port: Option<String>Port specified in the URL (e.g. ssh://host:22/path). None for
bare SSH (git@host:path) and for ssh:// URLs without a port.
Threaded into git-lfs-authenticate invocations as -p <port>.
Trait Implementations§
impl Eq for SshInfo
impl StructuralPartialEq for SshInfo
Auto Trait Implementations§
impl Freeze for SshInfo
impl RefUnwindSafe for SshInfo
impl Send for SshInfo
impl Sync for SshInfo
impl Unpin for SshInfo
impl UnsafeUnpin for SshInfo
impl UnwindSafe for SshInfo
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