Wrapper

Struct Wrapper 

Source
pub struct Wrapper<'a> {
Show 13 fields pub follow_additional_wrappers: Option<bool>, pub allow_multiple_ads: Option<bool>, pub fallback_on_no_ad: Option<bool>, 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_verifications: Option<AdVerifications<'a>>, pub blocked_ad_categories: Vec<BlockedAdCategories<'a>>, pub creatives: Option<Creatives<'a>>, pub vast_ad_tag_uri: Cow<'a, str>,
}
Expand description

Second-level element surrounding wrapper ad pointing to Secondary ad server.

<xs:element name="Wrapper">
  <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:sequence>

    <xs:attribute name="followAdditionalWrappers" type="xs:boolean">
    <xs:attribute name="allowMultipleAds" type="xs:boolean">
    <xs:attribute name="fallbackOnNoAd" type="xs:boolean">
    <xs:sequence>
      <xs:element name="AdVerifications" minOccurs="0" maxOccurs="1" type="vast:AdVerifications_type" />
      <xs:element name="BlockedAdCategories" minOccurs="0" maxOccurs="unbounded">
      <xs:element name="Creatives" minOccurs="0" maxOccurs="1">
      <xs:element name="VASTAdTagURI" minOccurs="1" maxOccurs="1" type="xs:anyURI">
    </xs:sequence>
  </xs:complexType>
</xs:element>

Fields§

§follow_additional_wrappers: Option<bool>

A Boolean value that identifies whether subsequent Wrappers after a requested VAST response is allowed. If false, any Wrappers received (i.e. not an Inline VAST response) should be ignored. Otherwise, VAST Wrappers received should be accepted (default value is “true.”)

§allow_multiple_ads: Option<bool>

A Boolean value that identifies whether multiple ads are allowed in the requested VAST response. If true, both Pods and stand-alone ads are allowed. If false, only the first stand-alone Ad (with no sequence values) in the requested VAST response is allowed. Default value is “false.”

§fallback_on_no_ad: Option<bool>

A Boolean value that provides instruction for using an available Ad when the requested VAST response returns no ads. If true, the media player should select from any stand-alone ads available. If false and the Wrapper represents an Ad in a Pod, the media player should move on to the next Ad in a Pod; otherwise, the media player can follow through at its own discretion where no-ad responses are concerned.

§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_verifications: Option<AdVerifications<'a>>

The container for zero or one <AdVerifications> element.

§blocked_ad_categories: Vec<BlockedAdCategories<'a>>

The container for zero or more <BlockedAdCategories> elements.

§creatives: Option<Creatives<'a>>

The container for zero or one <Creative> element.

§vast_ad_tag_uri: Cow<'a, str>

A URI to another VAST response that may be another VAST Wrapper or a VAST InLine ad.

Trait Implementations§

Source§

impl<'a> Clone for Wrapper<'a>

Source§

fn clone(&self) -> Wrapper<'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 Wrapper<'a>

Source§

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

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

impl<'a> Default for Wrapper<'a>

Source§

fn default() -> Wrapper<'a>

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

impl<'a> PartialEq for Wrapper<'a>

Source§

fn eq(&self, other: &Wrapper<'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 Wrapper<'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 Wrapper<'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 Wrapper<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Wrapper<'a>

§

impl<'a> RefUnwindSafe for Wrapper<'a>

§

impl<'a> Send for Wrapper<'a>

§

impl<'a> Sync for Wrapper<'a>

§

impl<'a> Unpin for Wrapper<'a>

§

impl<'a> UnwindSafe for Wrapper<'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>,