vast4_rs/
creative_resource.rs

1/// The URI to a static creative file to be used for the ad component identified in the parent
2/// element.
3///
4/// ```text
5/// <xs:element name="StaticResource">
6///   <xs:complexType>
7///     <xs:simpleContent>
8///       <xs:extension base="xs:anyURI">
9///         <xs:attribute name="creativeType" type="xs:string" use="required">
10///       </xs:extension>
11///     </xs:simpleContent>
12///   </xs:complexType>
13/// </xs:element>
14/// ```
15#[derive(hard_xml::XmlWrite, hard_xml::XmlRead, Default, PartialEq, Clone, Debug)]
16#[xml(tag = "StaticResource")]
17pub struct StaticResource<'a> {
18    /// Identifies the MIME type of the creative provided.
19    #[xml(attr = "creativeType", default)]
20    pub creative_type: std::borrow::Cow<'a, str>,
21
22    /// A URI to the static creative file to be used for the ad component identified in the
23    /// parent element.
24    #[xml(text, cdata, default)]
25    pub uri: std::borrow::Cow<'a, str>,
26}