pub struct VersionDisplayItem {
pub version: String,
pub label: String,
pub description: String,
pub index: usize,
pub is_latest: bool,
}Expand description
Display metadata for a single version in LSP responses.
Captures common formatting logic shared between completion items and code actions.
Fields§
§version: StringRaw 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
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 · 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 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