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 moreSource§impl Debug for NuGetVersion
impl Debug for NuGetVersion
Source§impl Version for NuGetVersion
impl Version for NuGetVersion
Source§fn version_string(&self) -> &ConcreteVersion
fn version_string(&self) -> &ConcreteVersion
Source§fn is_prerelease(&self) -> bool
fn is_prerelease(&self) -> bool
Source§fn published_at(&self) -> Option<PublishTime>
fn published_at(&self) -> Option<PublishTime>
Source§fn removal_status(&self) -> RemovalStatus
fn removal_status(&self) -> RemovalStatus
Source§fn deprecation(&self) -> Option<&Deprecation>
fn deprecation(&self) -> Option<&Deprecation>
Auto Trait Implementations§
impl Freeze for NuGetVersion
impl RefUnwindSafe for NuGetVersion
impl Send for NuGetVersion
impl Sync for NuGetVersion
impl Unpin for NuGetVersion
impl UnsafeUnpin for NuGetVersion
impl UnwindSafe for NuGetVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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