pub struct VersionEntry {
pub source: String,
pub url: String,
pub version: Option<String>,
pub resolved_sha: Option<String>,
pub resolved_version: Option<String>,
pub resolution_mode: ResolutionMode,
}Expand description
Version resolution entry tracking source and version to SHA mapping
Fields§
§source: StringSource name from manifest
url: StringSource URL (Git repository)
version: Option<String>Version specification (tag, branch, commit, or None for HEAD)
resolved_sha: Option<String>Resolved SHA-1 hash (populated during resolution)
resolved_version: Option<String>Resolved version (e.g., “latest” -> “v2.0.0”)
resolution_mode: ResolutionModeResolution mode used for this entry
Implementations§
Source§impl VersionEntry
impl VersionEntry
Sourcepub fn format_display(&self) -> String
pub fn format_display(&self) -> String
Format the version entry for display in progress UI.
Formats as: source@version or source@HEAD if no version specified.
§Examples
let entry = VersionEntry {
source: "community".to_string(),
url: "https://github.com/example/repo.git".to_string(),
version: Some("v1.0.0".to_string()),
resolved_sha: None,
resolved_version: None,
resolution_mode: ResolutionMode::Version,
};
assert_eq!(entry.format_display(), "community@v1.0.0");Sourcepub fn unique_key(&self) -> String
pub fn unique_key(&self) -> String
Create a unique key for tracking this entry in the progress window.
Uses source and version to create a unique identifier.
Trait Implementations§
Source§impl Clone for VersionEntry
impl Clone for VersionEntry
Source§fn clone(&self) -> VersionEntry
fn clone(&self) -> VersionEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VersionEntry
impl RefUnwindSafe for VersionEntry
impl Send for VersionEntry
impl Sync for VersionEntry
impl Unpin for VersionEntry
impl UnwindSafe for VersionEntry
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more