pub struct VersionDisplayItem {
pub version: ConcreteVersion,
pub label: String,
pub description: String,
pub index: usize,
pub is_latest: bool,
pub published_at: Option<PublishTime>,
}Expand description
Display metadata for a single version in LSP responses.
Captures common formatting logic shared between completion items and code actions.
Fields§
§version: ConcreteVersionRaw version string (e.g., “1.0.0”)
label: StringDisplay label with “(latest)” suffix for first item
description: StringAction description (e.g., “Update serde to 1.0.0”)
index: usizeZero-based index for sorting
is_latest: boolTrue if this is the latest non-yanked version
published_at: Option<PublishTime>When this version was published, if the registry exposes it.
None for ecosystems without publish metadata (see
Version::published_at) — callers must degrade gracefully rather than
rendering a placeholder age.
Implementations§
Trait Implementations§
Source§impl Clone for VersionDisplayItem
impl Clone for VersionDisplayItem
Source§fn clone(&self) -> VersionDisplayItem
fn clone(&self) -> VersionDisplayItem
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 moreAuto Trait Implementations§
impl Freeze for VersionDisplayItem
impl RefUnwindSafe for VersionDisplayItem
impl Send for VersionDisplayItem
impl Sync for VersionDisplayItem
impl Unpin for VersionDisplayItem
impl UnsafeUnpin for VersionDisplayItem
impl UnwindSafe for VersionDisplayItem
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