pub struct Entry {
pub label: String,
pub name: String,
pub version: Option<String>,
pub member: bool,
/* private fields */
}Expand description
One locked package.
Fields§
§label: StringWhat an error names: the package name, or the path of a JavaScript
workspace member (. for the root) or of a node_modules entry.
name: StringThe package name, as its manifest writes it.
version: Option<String>The locked version, when the entry records one.
member: boolWhether the entry is a workspace member.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn follows_version(&self, format: Format) -> bool
pub fn follows_version(&self, format: Format) -> bool
Whether a bump of the member this entry records changes the entry.
The root workspace of a bun.lock records no version key, so a
bump leaves it as it is. Every other member entry follows its
manifest’s version, even one that records none, because the lockfile
cannot say it never will.
Trait Implementations§
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Forget for Entry
impl Freeze for Entry
impl Move for Entry
impl RefUnwindSafe for Entry
impl Send for Entrywhere
RawVecInner: Send,
impl Sync for Entrywhere
RawVecInner: Sync,
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entrywhere
RawVecInner: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.