pub struct AdAncestry<'a> { /* private fields */ }Expand description
Encapsulates the script ancestry and the root script filter list rule that caused the resource or element to be labeled as an ad.
Implementations§
Source§impl<'a> AdAncestry<'a>
impl<'a> AdAncestry<'a>
Sourcepub fn builder(
ancestry_chain: Vec<AdScriptIdentifier<'a>>,
) -> AdAncestryBuilder<'a>
pub fn builder( ancestry_chain: Vec<AdScriptIdentifier<'a>>, ) -> AdAncestryBuilder<'a>
Creates a builder for this type with the required parameters:
ancestry_chain: A chain ofAdScriptIdentifiers representing the ancestry of an ad script that led to the creation of a resource or element. The chain is ordered from the script itself (lowest level) up to its root ancestor that was flagged by a filter list.
Sourcepub fn ancestry_chain(&self) -> &[AdScriptIdentifier<'a>]
pub fn ancestry_chain(&self) -> &[AdScriptIdentifier<'a>]
A chain of ’AdScriptIdentifier’s representing the ancestry of an ad script that led to the creation of a resource or element. The chain is ordered from the script itself (lowest level) up to its root ancestor that was flagged by a filter list.
Sourcepub fn root_script_filterlist_rule(&self) -> Option<&str>
pub fn root_script_filterlist_rule(&self) -> Option<&str>
The filter list rule that caused the root (last) script in ‘ancestryChain’ to be tagged as an ad.
Trait Implementations§
Source§impl<'a> Clone for AdAncestry<'a>
impl<'a> Clone for AdAncestry<'a>
Source§fn clone(&self) -> AdAncestry<'a>
fn clone(&self) -> AdAncestry<'a>
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<'a> Debug for AdAncestry<'a>
impl<'a> Debug for AdAncestry<'a>
Source§impl<'a> Default for AdAncestry<'a>
impl<'a> Default for AdAncestry<'a>
Source§fn default() -> AdAncestry<'a>
fn default() -> AdAncestry<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for AdAncestry<'a>
impl<'de, 'a> Deserialize<'de> for AdAncestry<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for AdAncestry<'a>
impl<'a> RefUnwindSafe for AdAncestry<'a>
impl<'a> Send for AdAncestry<'a>
impl<'a> Sync for AdAncestry<'a>
impl<'a> Unpin for AdAncestry<'a>
impl<'a> UnsafeUnpin for AdAncestry<'a>
impl<'a> UnwindSafe for AdAncestry<'a>
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