pub struct Tracking<'a> {
pub event: TrackingEvent,
pub offset: Option<Offset>,
pub uri: Cow<'a, str>,
}Expand description
Each <Tracking> element is used to define a single event to be tracked.
<xs:element name="Tracking">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:anyURI">
<xs:attribute name="event" use="required">
</xs:attribute>
<xs:attribute name="offset" use="optional">
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>Fields§
§event: TrackingEventA string that defines the event being tracked. Accepted values are listed in section
3.14.1 and differ for <Linear>, <NonLinear>, and
<Companion>.
offset: Option<Offset>Only available when <Linear> is the parent. Accepts values of time in
the format HH:MM:SS or as a percentage in the format n%. When the progress of the
Linear creative has matched the value specified, the included URI is triggered. If the
duration is not known when the offset is set to a percentage value, the progress
event may be ignored.
uri: Cow<'a, str>A URI to the tracking resource for the event specified using the event attribute.
Trait Implementations§
impl<'a> StructuralPartialEq for Tracking<'a>
Auto Trait Implementations§
impl<'a> Freeze for Tracking<'a>
impl<'a> RefUnwindSafe for Tracking<'a>
impl<'a> Send for Tracking<'a>
impl<'a> Sync for Tracking<'a>
impl<'a> Unpin for Tracking<'a>
impl<'a> UnwindSafe for Tracking<'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