pub struct AdProvenance {
pub filterlistRule: Option<String>,
pub adScriptAncestry: 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.
Fields§
§filterlistRule: Option<String>The filterlist rule that matched, if any.
adScriptAncestry: Option<AdAncestry>The script ancestry that created the ad, if any.
Trait Implementations§
Source§impl Clone for AdProvenance
impl Clone for AdProvenance
Source§fn clone(&self) -> AdProvenance
fn clone(&self) -> AdProvenance
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 AdProvenance
impl Debug for AdProvenance
Source§impl Default for AdProvenance
impl Default for AdProvenance
Source§fn default() -> AdProvenance
fn default() -> AdProvenance
Returns the “default value” for a type. Read more
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
Auto Trait Implementations§
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