pub struct AdParameters<'a> {
pub xml_encoded: Option<bool>,
pub metadata: Cow<'a, str>,
}Expand description
The <AdParameters> element is currently the only way to pass information from the
VAST response into the VPAID object.
<xs:complexType name="AdParameters">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="xmlEncoded" type="xs:boolean" use="optional">
</xs:extension>
</xs:simpleContent>
</xs:complexType>Fields§
§xml_encoded: Option<bool>Identifies whether the ad parameters are xml-encoded.
metadata: Cow<'a, str>Metadata for the ad.
Trait Implementations§
Source§impl<'a> Clone for AdParameters<'a>
impl<'a> Clone for AdParameters<'a>
Source§fn clone(&self) -> AdParameters<'a>
fn clone(&self) -> AdParameters<'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 AdParameters<'a>
impl<'a> Debug for AdParameters<'a>
Source§impl<'a> Default for AdParameters<'a>
impl<'a> Default for AdParameters<'a>
Source§fn default() -> AdParameters<'a>
fn default() -> AdParameters<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for AdParameters<'a>
impl<'a> PartialEq for AdParameters<'a>
Source§impl<'__input: 'a, 'a> XmlRead<'__input> for AdParameters<'a>
impl<'__input: 'a, 'a> XmlRead<'__input> for AdParameters<'a>
Source§impl<'a> XmlWrite for AdParameters<'a>
impl<'a> XmlWrite for AdParameters<'a>
impl<'a> StructuralPartialEq for AdParameters<'a>
Auto Trait Implementations§
impl<'a> Freeze for AdParameters<'a>
impl<'a> RefUnwindSafe for AdParameters<'a>
impl<'a> Send for AdParameters<'a>
impl<'a> Sync for AdParameters<'a>
impl<'a> Unpin for AdParameters<'a>
impl<'a> UnwindSafe for AdParameters<'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