pub struct Ad<'a> {
pub id: Option<Cow<'a, str>>,
pub sequence: Option<i32>,
pub conditional_ad: Option<bool>,
pub ad_type: Option<Cow<'a, str>>,
pub in_line: Option<InLine<'a>>,
pub wrapper: Option<Wrapper<'a>>,
}Expand description
Top-level element, wraps each ad in the response or ad unit in an ad pod. This MUST be present
unless an Error element is present.
<xs:element name="Ad">
<xs:complexType>
<xs:attribute name="id" type="xs:string" use="optional" />
<xs:attribute name="sequence" type="xs:integer" use="optional">
<xs:attribute name="conditionalAd" type="xs:boolean" use="optional">
<xs:attribute name="adType" use="optional">
<xs:choice>
<xs:element name="InLine" minOccurs="0" maxOccurs="1" type="vast:Inline_type">
<xs:element name="Wrapper" minOccurs="0" maxOccurs="1" type="vast:Wrapper_type">
</xs:choice>
</xs:complexType>
</xs:element>Fields§
§id: Option<Cow<'a, str>>An ad server-defined identifier string for the ad.
sequence: Option<i32>Identifies the sequence of multiple Ads that are part of an Ad Pod.
conditional_ad: Option<bool>👎Deprecated since VAST 4.1
A Boolean value that identifies a conditional ad.
ad_type: Option<Cow<'a, str>>An optional string that identifies the type of ad. This allows VAST to support audio ad scenarios. The default value is video.
in_line: Option<InLine<'a>>The container for zero or one <InLine> element.
wrapper: Option<Wrapper<'a>>Second-level element surrounding wrapper ad pointing to Secondary ad server.
Trait Implementations§
impl<'a> StructuralPartialEq for Ad<'a>
Auto Trait Implementations§
impl<'a> Freeze for Ad<'a>
impl<'a> RefUnwindSafe for Ad<'a>
impl<'a> Send for Ad<'a>
impl<'a> Sync for Ad<'a>
impl<'a> Unpin for Ad<'a>
impl<'a> UnwindSafe for Ad<'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