Skip to main content

Audio

Struct Audio 

Source
pub struct Audio {
Show 26 fields pub mimes: Vec<String>, pub minduration: Option<i64>, pub maxduration: Option<i64>, pub poddur: Option<i64>, pub protocols: Option<Vec<i64>>, pub startdelay: Option<i64>, pub rqddurs: Option<Vec<i64>>, pub podid: Option<String>, pub podseq: Option<i64>, pub sequence: Option<i64>, pub slotinpod: Option<i64>, pub mincpmpersec: Option<f64>, pub battr: Option<Vec<i64>>, pub maxextended: Option<i64>, pub minbitrate: Option<i64>, pub maxbitrate: Option<i64>, pub delivery: Option<Vec<i64>>, pub companionad: Option<Vec<Banner>>, pub api: Option<Vec<i64>>, pub companiontype: Option<Vec<i64>>, pub maxseq: Option<i64>, pub feed: Option<i64>, pub stitched: Option<i64>, pub nvol: Option<i64>, pub durfloors: Option<Vec<DurFloors>>, pub ext: Option<Value>,
}
Expand description

Represents an audio type impression.

Fields§

§mimes: Vec<String>

Content MIME types supported.

§minduration: Option<i64>

Minimum audio ad duration in seconds. Recommended. Mutually exclusive with rqddurs.

§maxduration: Option<i64>

Maximum audio ad duration in seconds. Recommended. Mutually exclusive with rqddurs.

§poddur: Option<i64>

Total time in seconds for a dynamic audio ad pod. Required for dynamic portions. Recommended.

§protocols: Option<Vec<i64>>

Array of supported audio protocols. Refer to AdCOM 1.0 List: Creative Subtypes - Audio/Video. Recommended.

§startdelay: Option<i64>

Start delay in seconds for placements. Refer to AdCOM 1.0 List: Start Delay Modes. Recommended.

§rqddurs: Option<Vec<i64>>

Precise acceptable durations for audio creatives in seconds. Mutually exclusive with minduration/maxduration.

§podid: Option<String>

Unique identifier for audio ad pod impression belongs to.

§podseq: Option<i64>

Sequence (position) of audio ad pod within content stream. Refer to AdCOM 1.0 List: Pod Sequence.

§sequence: Option<i64>
👎Deprecated since 2.6.0:

Use slotinpod

DEPRECATED as of OpenRTB 2.6. Use slotinpod.

§slotinpod: Option<i64>

Seller guarantees delivery against indicated slot position in pod. Refer to AdCOM 1.0 List: Slot Position in Pod.

§mincpmpersec: Option<f64>

Minimum CPM per second for dynamic portion of audio ad pod.

§battr: Option<Vec<i64>>

Blocked creative attributes. Refer to AdCOM 1.0 List: Creative Attributes.

§maxextended: Option<i64>

Maximum extended ad duration if allowed. If blank/0, not allowed. -1=no limit. >0=seconds of extension.

§minbitrate: Option<i64>

Minimum bit rate in Kbps.

§maxbitrate: Option<i64>

Maximum bit rate in Kbps.

§delivery: Option<Vec<i64>>

Supported delivery methods. Refer to AdCOM 1.0 List: Delivery Methods.

§companionad: Option<Vec<Banner>>

Array of Banner objects if companion ads available.

§api: Option<Vec<i64>>

List of supported API frameworks. Refer to AdCOM 1.0 List: API Frameworks.

§companiontype: Option<Vec<i64>>

Supported companion ad types. Refer to AdCOM 1.0 List: Companion Types. Recommended if companionad included.

§maxseq: Option<i64>

Maximum number of ads that can be played in an ad pod.

§feed: Option<i64>

Type of audio feed. Refer to AdCOM 1.0 List: Feed Types.

§stitched: Option<i64>

Indicates if ad is stitched (0=no, 1=yes).

§nvol: Option<i64>

Volume normalization mode. Refer to AdCOM 1.0 List: Volume Normalization Modes.

§durfloors: Option<Vec<DurFloors>>

Array of DurFloors objects indicating floor prices for various audio durations.

§ext: Option<Value>

Placeholder for exchange-specific extensions.

Trait Implementations§

Source§

impl Clone for Audio

Source§

fn clone(&self) -> Audio

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Audio

Source§

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

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

impl Default for Audio

Source§

fn default() -> Audio

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

impl<'de> Deserialize<'de> for Audio

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Audio

Source§

fn eq(&self, other: &Audio) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 Serialize for Audio

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Audio

Auto Trait Implementations§

§

impl Freeze for Audio

§

impl RefUnwindSafe for Audio

§

impl Send for Audio

§

impl Sync for Audio

§

impl Unpin for Audio

§

impl UnsafeUnpin for Audio

§

impl UnwindSafe for Audio

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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.