pub struct JavaScriptResource<'a> {
pub api_framework: Option<Cow<'a, str>>,
pub browser_optional: Option<bool>,
pub uri: Cow<'a, str>,
}
Expand description
A container for the URI to the JavaScript file used to collect verification data.
<xs:element name="JavaScriptResource">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:anyURI">
<xs:attribute name="apiFramework" type="xs:string" use="optional" />
<xs:attribute name="browserOptional" type="xs:boolean" use="optional" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
Fields§
§api_framework: Option<Cow<'a, str>>
The name of the API framework used to execute the AdVerification code.
browser_optional: Option<bool>
Boolean value. If true, this resource is optimized and able to execute in an environment without DOM and other browser built-ins (e.g. iOS’ JavaScriptCore)
uri: Cow<'a, str>
A CDATA-wrapped URI to the JavaScript used to collect data.
Trait Implementations§
Source§impl<'a> Clone for JavaScriptResource<'a>
impl<'a> Clone for JavaScriptResource<'a>
Source§fn clone(&self) -> JavaScriptResource<'a>
fn clone(&self) -> JavaScriptResource<'a>
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<'a> Debug for JavaScriptResource<'a>
impl<'a> Debug for JavaScriptResource<'a>
Source§impl<'a> Default for JavaScriptResource<'a>
impl<'a> Default for JavaScriptResource<'a>
Source§fn default() -> JavaScriptResource<'a>
fn default() -> JavaScriptResource<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for JavaScriptResource<'a>
impl<'a> PartialEq for JavaScriptResource<'a>
Source§impl<'__input: 'a, 'a> XmlRead<'__input> for JavaScriptResource<'a>
impl<'__input: 'a, 'a> XmlRead<'__input> for JavaScriptResource<'a>
Source§impl<'a> XmlWrite for JavaScriptResource<'a>
impl<'a> XmlWrite for JavaScriptResource<'a>
impl<'a> StructuralPartialEq for JavaScriptResource<'a>
Auto Trait Implementations§
impl<'a> Freeze for JavaScriptResource<'a>
impl<'a> RefUnwindSafe for JavaScriptResource<'a>
impl<'a> Send for JavaScriptResource<'a>
impl<'a> Sync for JavaScriptResource<'a>
impl<'a> Unpin for JavaScriptResource<'a>
impl<'a> UnwindSafe for JavaScriptResource<'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