pub struct PendingPermalink {
pub intent: PermalinkIntent,
pub host: String,
pub repo: RepoTarget,
pub remotes: Vec<(String, String)>,
pub sha: String,
pub path: PathBuf,
pub lines: (usize, usize),
}Expand description
Frozen pure data for a permalink whose SSH host alias is still unresolved: the alias’s answer plus these fields rebuild the URL with no repository handle, no IO, and no state that moved meanwhile. The captured repository determines which machine and working directory own the OpenSSH configuration (0036 RW8).
Fields§
§intent: PermalinkIntent§host: StringThe alias exactly as the winning remote spells it.
repo: RepoTargetRepository identity owns both the endpoint and remote working directory.
remotes: Vec<(String, String)>The (name, url) pairs the selection folded over — completion re-runs the same pure fold against this frozen copy.
sha: StringThe pinned commit SHA, already resolved (0014): never a branch.
path: PathBufRepo-relative file path, native bytes.
lines: (usize, usize)1-based line range.
Trait Implementations§
Source§impl Clone for PendingPermalink
impl Clone for PendingPermalink
Source§fn clone(&self) -> PendingPermalink
fn clone(&self) -> PendingPermalink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PendingPermalink
impl Debug for PendingPermalink
Source§impl<'de> Deserialize<'de> for PendingPermalink
impl<'de> Deserialize<'de> for PendingPermalink
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
impl Eq for PendingPermalink
Source§impl PartialEq for PendingPermalink
impl PartialEq for PendingPermalink
Source§impl Serialize for PendingPermalink
impl Serialize for PendingPermalink
impl StructuralPartialEq for PendingPermalink
Auto Trait Implementations§
impl Freeze for PendingPermalink
impl RefUnwindSafe for PendingPermalink
impl Send for PendingPermalink
impl Sync for PendingPermalink
impl Unpin for PendingPermalink
impl UnsafeUnpin for PendingPermalink
impl UnwindSafe for PendingPermalink
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.