pub struct AdScriptIdentifier<'a> { /* private fields */ }Expand description
Identifies the script on the stack that caused a resource or element to be labeled as an ad. For resources, this indicates the context that triggered the fetch. For elements, this indicates the context that caused the element to be appended to the DOM.
Implementations§
Source§impl<'a> AdScriptIdentifier<'a>
impl<'a> AdScriptIdentifier<'a>
Sourcepub fn builder(
script_id: ScriptId<'a>,
debugger_id: UniqueDebuggerId<'a>,
name: impl Into<Cow<'a, str>>,
) -> AdScriptIdentifierBuilder<'a>
pub fn builder( script_id: ScriptId<'a>, debugger_id: UniqueDebuggerId<'a>, name: impl Into<Cow<'a, str>>, ) -> AdScriptIdentifierBuilder<'a>
Creates a builder for this type with the required parameters:
script_id: The script’s V8 identifier.debugger_id: V8’s debugging ID for the v8::Context.name: The script’s url (or generated name based on id if inline script).
Sourcepub fn debugger_id(&self) -> &UniqueDebuggerId<'a>
pub fn debugger_id(&self) -> &UniqueDebuggerId<'a>
V8’s debugging ID for the v8::Context.
Trait Implementations§
Source§impl<'a> Clone for AdScriptIdentifier<'a>
impl<'a> Clone for AdScriptIdentifier<'a>
Source§fn clone(&self) -> AdScriptIdentifier<'a>
fn clone(&self) -> AdScriptIdentifier<'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 AdScriptIdentifier<'a>
impl<'a> Debug for AdScriptIdentifier<'a>
Source§impl<'a> Default for AdScriptIdentifier<'a>
impl<'a> Default for AdScriptIdentifier<'a>
Source§fn default() -> AdScriptIdentifier<'a>
fn default() -> AdScriptIdentifier<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for AdScriptIdentifier<'a>
impl<'de, 'a> Deserialize<'de> for AdScriptIdentifier<'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 AdScriptIdentifier<'a>
impl<'a> RefUnwindSafe for AdScriptIdentifier<'a>
impl<'a> Send for AdScriptIdentifier<'a>
impl<'a> Sync for AdScriptIdentifier<'a>
impl<'a> Unpin for AdScriptIdentifier<'a>
impl<'a> UnsafeUnpin for AdScriptIdentifier<'a>
impl<'a> UnwindSafe for AdScriptIdentifier<'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