pub struct AdProvenance<'a> { /* private fields */ }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.
Implementations§
Source§impl<'a> AdProvenance<'a>
impl<'a> AdProvenance<'a>
pub fn builder() -> AdProvenanceBuilder<'a>
pub fn filterlistRule(&self) -> Option<&str>
pub fn adScriptAncestry(&self) -> Option<&AdAncestry<'a>>
Trait Implementations§
Source§impl<'a> Clone for AdProvenance<'a>
impl<'a> Clone for AdProvenance<'a>
Source§fn clone(&self) -> AdProvenance<'a>
fn clone(&self) -> AdProvenance<'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 AdProvenance<'a>
impl<'a> Debug for AdProvenance<'a>
Source§impl<'a> Default for AdProvenance<'a>
impl<'a> Default for AdProvenance<'a>
Source§fn default() -> AdProvenance<'a>
fn default() -> AdProvenance<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for AdProvenance<'a>
impl<'de, 'a> Deserialize<'de> for AdProvenance<'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 AdProvenance<'a>
impl<'a> RefUnwindSafe for AdProvenance<'a>
impl<'a> Send for AdProvenance<'a>
impl<'a> Sync for AdProvenance<'a>
impl<'a> Unpin for AdProvenance<'a>
impl<'a> UnsafeUnpin for AdProvenance<'a>
impl<'a> UnwindSafe for AdProvenance<'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