pub struct NuGetVersion {
pub version: ConcreteVersion,
pub published_at: Option<PublishTime>,
}Expand description
A single version of a package, as returned by the NuGet flat-container endpoint.
Deliberately a single field. removal_status always reports Available (the
trait default, no override here) because the flat container carries no listed
flag — unlisted detection requires the registration hive and is deferred (spec
§1, follow-up D1) to hover-only enrichment.
Hand-writes deps_core::Version instead of using impl_version! because the macro’s
is_prerelease cannot be overridden and the shared default (a keyword sniff for
-alpha|-beta|-rc|-dev|-pre|-snapshot|-canary|-nightly) does not recognize standard
.NET prerelease labels (-rtm, -servicing.23, -CI-*, -final, …). This follows
the same precedent as deps-maven’s and deps-go’s hand-written Version impls for
ecosystems with a structural (non-keyword) prerelease convention.
Fields§
§version: ConcreteVersion§published_at: Option<PublishTime>Publish timestamp, populated only when Registry::get_versions_with is called with
freshness enabled and the version was covered by the registration-hive walk.
Trait Implementations§
Source§impl Clone for NuGetVersion
impl Clone for NuGetVersion
Source§fn clone(&self) -> NuGetVersion
fn clone(&self) -> NuGetVersion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more