pub struct AdProvenance {
pub filterlist_rule: Option<String>,
pub ad_script_ancestry: Option<AdAncestry>,
}Expand description
Represents the provenance of an ad resource or element. Only one of
filterlistRule or adScriptAncestry can be set. If filterlistRule is
provided, the resource URL directly matches a filter list rule. If
adScriptAncestry is provided, an ad script initiated the resource fetch
or appended the element to the DOM. If neither is provided, the entity is
known to be an ad, but provenance tracking information is unavailable.
Experimental: may change without notice.
Fields§
§filterlist_rule: Option<String>The filterlist rule that matched, if any.
ad_script_ancestry: Option<AdAncestry>The script ancestry that created the ad, if any. Note: depending on the context, this may represent the full ancestry up to the root script, or it may contain only one script representing the immediate ancestor.
Trait Implementations§
Source§impl Clone for AdProvenance
impl Clone for AdProvenance
Source§impl Debug for AdProvenance
impl Debug for AdProvenance
Source§impl Default for AdProvenance
impl Default for AdProvenance
Source§impl<'de> Deserialize<'de> for AdProvenance
impl<'de> Deserialize<'de> for AdProvenance
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 PartialEq for AdProvenance
impl PartialEq for AdProvenance
Source§impl Serialize for AdProvenance
impl Serialize for AdProvenance
impl StructuralPartialEq for AdProvenance
Auto Trait Implementations§
impl Forget for AdProvenance
impl Freeze for AdProvenance
impl RefUnwindSafe for AdProvenance
impl Send for AdProvenance
impl Sync for AdProvenance
impl Unpin for AdProvenance
impl UnsafeUnpin for AdProvenance
impl UnwindSafe for AdProvenance
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