pub struct IgnoreCatalogReferenceRule {
pub package: String,
pub catalog: Option<String>,
pub consumer: Option<String>,
}Expand description
Rule for suppressing an unresolved-catalog-reference finding.
A finding is suppressed when ALL provided fields match the finding:
packagematches the consumed package name exactly (case-sensitive).catalog, if set, matches the referenced catalog name ("default"for barecatalog:references; named catalogs use their declared key). When omitted, any catalog matches.consumer, if set, is a glob matched against the consumerpackage.jsonpath relative to the project root. When omitted, any consumer matches.
Typical use cases:
- Staged migrations: catalog entry is being added in a separate PR
- Library-internal placeholder packages whose target catalog isn’t ready yet
Fields§
§package: StringPackage name being referenced via the catalog protocol (exact match).
catalog: Option<String>Catalog name to scope the suppression to. None matches any catalog.
consumer: Option<String>Glob (root-relative) for the consumer package.json. None matches any consumer.
Trait Implementations§
Source§impl Clone for IgnoreCatalogReferenceRule
impl Clone for IgnoreCatalogReferenceRule
Source§fn clone(&self) -> IgnoreCatalogReferenceRule
fn clone(&self) -> IgnoreCatalogReferenceRule
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 moreSource§impl Debug for IgnoreCatalogReferenceRule
impl Debug for IgnoreCatalogReferenceRule
Source§impl<'de> Deserialize<'de> for IgnoreCatalogReferenceRule
impl<'de> Deserialize<'de> for IgnoreCatalogReferenceRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for IgnoreCatalogReferenceRule
impl JsonSchema for IgnoreCatalogReferenceRule
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for IgnoreCatalogReferenceRule
impl RefUnwindSafe for IgnoreCatalogReferenceRule
impl Send for IgnoreCatalogReferenceRule
impl Sync for IgnoreCatalogReferenceRule
impl Unpin for IgnoreCatalogReferenceRule
impl UnsafeUnpin for IgnoreCatalogReferenceRule
impl UnwindSafe for IgnoreCatalogReferenceRule
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