pub struct UnusedCatalogEntry {
pub entry_name: String,
pub catalog_name: String,
pub path: PathBuf,
pub line: u32,
pub hardcoded_consumers: Vec<PathBuf>,
}Expand description
A package manager catalog entry that no workspace package references via
the catalog: protocol.
The default catalog uses catalog_name: "default". Named catalogs
(catalogs.<name>) use their declared name. The source file is
pnpm-workspace.yaml for pnpm catalogs or root package.json for Bun
catalogs.
Fields§
§entry_name: StringPackage name declared in the catalog (e.g. "react", "@scope/lib").
catalog_name: StringCatalog group: "default" for the default catalog map, or the named
catalog key for entries declared under catalogs.<name>.
path: PathBufPath to the catalog source file, relative to the analyzed root.
line: u321-based line number of the catalog entry within the source file.
hardcoded_consumers: Vec<PathBuf>Workspace package.json files that declare the same package with a
hardcoded version range instead of catalog:. Empty when no consumer
uses a hardcoded version. Sorted lexicographically for deterministic
output.
Trait Implementations§
Source§impl Clone for UnusedCatalogEntry
impl Clone for UnusedCatalogEntry
Source§fn clone(&self) -> UnusedCatalogEntry
fn clone(&self) -> UnusedCatalogEntry
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 UnusedCatalogEntry
impl Debug for UnusedCatalogEntry
Source§impl<'de> Deserialize<'de> for UnusedCatalogEntry
impl<'de> Deserialize<'de> for UnusedCatalogEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnusedCatalogEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnusedCatalogEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for UnusedCatalogEntry
impl JsonSchema for UnusedCatalogEntry
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Serialize for UnusedCatalogEntry
impl Serialize for UnusedCatalogEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for UnusedCatalogEntry
impl RefUnwindSafe for UnusedCatalogEntry
impl Send for UnusedCatalogEntry
impl Sync for UnusedCatalogEntry
impl Unpin for UnusedCatalogEntry
impl UnsafeUnpin for UnusedCatalogEntry
impl UnwindSafe for UnusedCatalogEntry
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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