pub struct AdScriptAncestry {
pub ancestry_chain: Vec<AdScriptId>,
pub root_script_filterlist_rule: Option<String>,
}Expand description
Encapsulates the script ancestry and the root script filterlist rule that
caused the frame to be labelled as an ad. Only created when ancestryChain
is not empty.
AdScriptAncestry
Fields§
§ancestry_chain: Vec<AdScriptId>A chain of AdScriptIds representing the ancestry of an ad script that
led to the creation of a frame. The chain is ordered from the script
itself (lower level) up to its root ancestor that was flagged by
filterlist.
root_script_filterlist_rule: Option<String>The filterlist rule that caused the root (last) script in
ancestryChain to be ad-tagged. Only populated if the rule is
available.
Implementations§
Source§impl AdScriptAncestry
impl AdScriptAncestry
pub fn new(ancestry_chain: Vec<AdScriptId>) -> AdScriptAncestry
Source§impl AdScriptAncestry
impl AdScriptAncestry
pub fn builder() -> AdScriptAncestryBuilder
Source§impl AdScriptAncestry
impl AdScriptAncestry
pub const IDENTIFIER: &'static str = "Page.AdScriptAncestry"
Trait Implementations§
Source§impl Clone for AdScriptAncestry
impl Clone for AdScriptAncestry
Source§fn clone(&self) -> AdScriptAncestry
fn clone(&self) -> AdScriptAncestry
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 AdScriptAncestry
impl Debug for AdScriptAncestry
Source§impl<'de> Deserialize<'de> for AdScriptAncestry
impl<'de> Deserialize<'de> for AdScriptAncestry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdScriptAncestry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdScriptAncestry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AdScriptAncestry
impl PartialEq for AdScriptAncestry
Source§impl Serialize for AdScriptAncestry
impl Serialize for AdScriptAncestry
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AdScriptAncestry
Auto Trait Implementations§
impl Freeze for AdScriptAncestry
impl RefUnwindSafe for AdScriptAncestry
impl Send for AdScriptAncestry
impl Sync for AdScriptAncestry
impl Unpin for AdScriptAncestry
impl UnwindSafe for AdScriptAncestry
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