pub enum RuleSource {
VastSpec,
VastXsd,
Xml,
Rfc3986,
IanaMediaTypes,
Iso4217,
AdId,
Inferred,
SimidSpec,
IndustryBestPractice,
}Expand description
The external standard or authority that a rule is derived from.
Mirrors the standards listed in the README. Use this to filter the catalog
by authority level — e.g. alert hard on RuleSource::VastSpec violations
while only logging RuleSource::Inferred advisories.
Variants§
VastSpec
IAB Tech Lab VAST spec normative prose (explicit §-references)
VastXsd
IAB Tech Lab VAST published XSD schemas (structural and enum constraints)
Xml
W3C XML 1.0 well-formedness
Rfc3986
RFC 3986 URI syntax
IanaMediaTypes
IANA Media Types registry
Iso4217
ISO 4217 currency codes
AdId
Ad-ID registry format
Inferred
vastlint heuristic — no single external spec authority
SimidSpec
IAB Tech Lab SIMID spec normative prose
IndustryBestPractice
Industry best practice derived from real-world ad serving patterns; violation has a direct revenue or measurement impact.
Implementations§
Trait Implementations§
Source§impl Clone for RuleSource
impl Clone for RuleSource
Source§fn clone(&self) -> RuleSource
fn clone(&self) -> RuleSource
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 moreSource§impl Debug for RuleSource
impl Debug for RuleSource
Source§impl PartialEq for RuleSource
impl PartialEq for RuleSource
impl Copy for RuleSource
impl Eq for RuleSource
impl StructuralPartialEq for RuleSource
Auto Trait Implementations§
impl Freeze for RuleSource
impl RefUnwindSafe for RuleSource
impl Send for RuleSource
impl Sync for RuleSource
impl Unpin for RuleSource
impl UnsafeUnpin for RuleSource
impl UnwindSafe for RuleSource
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