InLine

Struct InLine 

Source
pub struct InLine<'a> {
Show 15 fields pub ad_system: AdSystem<'a>, pub errors: Vec<Cow<'a, str>>, pub extensions: Option<Extensions>, pub impressions: Vec<Impression<'a>>, pub pricing: Option<Pricing<'a>>, pub viewable_impression: Option<ViewableImpression<'a>>, pub ad_serving_id: Cow<'a, str>, pub ad_title: Cow<'a, str>, pub ad_verifications: Option<AdVerifications<'a>>, pub advertiser: Option<Cow<'a, str>>, pub categories: Vec<Category<'a>>, pub creatives: Creatives<'a>, pub description: Option<Cow<'a, str>>, pub expires: Option<i32>, pub surveys: Option<Survey<'a>>,
}
Expand description

Second-level element surrounding complete ad data for a single ad.

<xs:element name="InLine">
  <xs:complexType>
    <xs:sequence>
      <!-- AdDefinitionBase_type -->
      <xs:element name="AdSystem" minOccurs="1" maxOccurs="1">
      <xs:element name="Error" minOccurs="0" maxOccurs="unbounded" type="xs:anyURI">
      <xs:element name="Extensions" minOccurs="0" maxOccurs="1">
      <xs:element name="Impression" minOccurs="1" maxOccurs="unbounded" type="vast:Impression_type">
      <xs:element name="Pricing" minOccurs="0" maxOccurs="1">
      <xs:element name="ViewableImpression" minOccurs="0" maxOccurs="1" type="vast:ViewableImpression_type" />

      <xs:element name="AdServingId" minOccurs="1" maxOccurs="1" type="xs:string">
      <xs:element name="AdTitle" minOccurs="1" maxOccurs="1" type="xs:string">
      <xs:element name="AdVerifications" minOccurs="0" maxOccurs="1" type="vast:AdVerifications_type" />
      <xs:element name="Advertiser" minOccurs="0" maxOccurs="1" type="xs:string">
      <xs:element name="Category" minOccurs="0" maxOccurs="unbounded">
      <xs:element name="Creatives" minOccurs="1" maxOccurs="1">
      <xs:element name="Description" minOccurs="0" maxOccurs="1" type="xs:string">
      <xs:element name="Expires" minOccurs="0" maxOccurs="1" type="xs:integer">
      <xs:element name="Survey" minOccurs="0" maxOccurs="1">
    </xs:sequence>
  </xs:complexType>
</xs:element>

Fields§

§ad_system: AdSystem<'a>

The <AdSystem> element.

§errors: Vec<Cow<'a, str>>

The container for zero or more <Error> elements.

§extensions: Option<Extensions>

The container for zero or one <Extensions> element.

§impressions: Vec<Impression<'a>>

The container for one or more <Impression> elements.

§pricing: Option<Pricing<'a>>

The container for zero or one <Pricing> element.

§viewable_impression: Option<ViewableImpression<'a>>

The container for zero or one <ViewableImpression> element.

§ad_serving_id: Cow<'a, str>

Any ad server that returns a VAST containing an <InLine> ad must generate a pseudo-unique identifier that is appropriate for all involved parties to track the lifecycle of that ad. This should be inserted into the <AdServingId> element, and also be included on all outgoing tracking pixels. The value should be different for each Inline in a VAST. Usage of a GUID is recommended.

§ad_title: Cow<'a, str>

Common name of ad

§ad_verifications: Option<AdVerifications<'a>>

The container for zero or one <AdVerifications> element.

§advertiser: Option<Cow<'a, str>>

Name of advertiser as defined by the ad serving party.

§categories: Vec<Category<'a>>

The container for zero or more <Category> elements.

§creatives: Creatives<'a>

The <Creatives> elements.

§description: Option<Cow<'a, str>>

Longer description of ad.

§expires: Option<i32>

An integer value that defines the expiry period (in seconds).

§surveys: Option<Survey<'a>>

The container for zero or one <Survey> elements.

Trait Implementations§

Source§

impl<'a> Clone for InLine<'a>

Source§

fn clone(&self) -> InLine<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for InLine<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for InLine<'a>

Source§

fn default() -> InLine<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a> PartialEq for InLine<'a>

Source§

fn eq(&self, other: &InLine<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'__input: 'a, 'a> XmlRead<'__input> for InLine<'a>

Source§

fn from_reader(reader: &mut XmlReader<'__input>) -> XmlResult<Self>

Source§

fn from_str(text: &'a str) -> Result<Self, XmlError>

Source§

impl<'a> XmlWrite for InLine<'a>

Source§

fn to_writer<W: Write>(&self, writer: &mut XmlWriter<W>) -> XmlResult<()>

Source§

fn to_string(&self) -> Result<String, XmlError>

Source§

impl<'a> StructuralPartialEq for InLine<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for InLine<'a>

§

impl<'a> RefUnwindSafe for InLine<'a>

§

impl<'a> Send for InLine<'a>

§

impl<'a> Sync for InLine<'a>

§

impl<'a> Unpin for InLine<'a>

§

impl<'a> UnwindSafe for InLine<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> XmlReadOwned for T
where T: for<'s> XmlRead<'s>,