pub struct VersionEntry {
pub version: &'static str,
pub release_date: &'static str,
pub lts: bool,
pub supported_until: Option<&'static str>,
pub breaking_changes: Vec<&'static str>,
pub deprecated_in: Vec<&'static str>,
}Expand description
A single entry in the OxiRS version history.
Fields§
§version: &'static strThe release version string (e.g. “1.0.0”).
release_date: &'static strISO 8601 release date (e.g. “2026-03-01”).
lts: boolWhether this is a Long-Term Support release.
supported_until: Option<&'static str>End-of-life date for security patches (None = not yet determined).
breaking_changes: Vec<&'static str>List of breaking API changes introduced in this version.
deprecated_in: Vec<&'static str>APIs deprecated in this version.
Implementations§
Source§impl VersionEntry
impl VersionEntry
Sourcepub fn is_supported(&self) -> bool
pub fn is_supported(&self) -> bool
Returns true if this version is currently within its support window.
Uses a conservative heuristic: returns true unless supported_until is set
and is known to be in the past (hardcoded reference date: 2026-02-24).
Sourcepub fn breaking_change_count(&self) -> usize
pub fn breaking_change_count(&self) -> usize
Returns the number of breaking changes in this release.
Sourcepub fn deprecation_count(&self) -> usize
pub fn deprecation_count(&self) -> usize
Returns the number of deprecations in this release.
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 UnsafeUnpin 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