pub struct LivePreRollConfiguration {
pub ad_decision_server_url: Option<String>,
pub max_duration_seconds: Option<i64>,
}
Expand description
The configuration for pre-roll ad insertion.
Fields
ad_decision_server_url: Option<String>
The URL for the ad decision server (ADS) for pre-roll ads. This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.
max_duration_seconds: Option<i64>
The maximum allowed duration for the pre-roll ad avail. AWS Elemental MediaTailor won't play pre-roll ads to exceed this duration, regardless of the total duration of ads that the ADS returns.
Trait Implementations
sourceimpl Clone for LivePreRollConfiguration
impl Clone for LivePreRollConfiguration
sourcefn clone(&self) -> LivePreRollConfiguration
fn clone(&self) -> LivePreRollConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LivePreRollConfiguration
impl Debug for LivePreRollConfiguration
sourceimpl Default for LivePreRollConfiguration
impl Default for LivePreRollConfiguration
sourcefn default() -> LivePreRollConfiguration
fn default() -> LivePreRollConfiguration
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for LivePreRollConfiguration
impl<'de> Deserialize<'de> for LivePreRollConfiguration
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<LivePreRollConfiguration> for LivePreRollConfiguration
impl PartialEq<LivePreRollConfiguration> for LivePreRollConfiguration
sourcefn eq(&self, other: &LivePreRollConfiguration) -> bool
fn eq(&self, other: &LivePreRollConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LivePreRollConfiguration) -> bool
fn ne(&self, other: &LivePreRollConfiguration) -> bool
This method tests for !=
.
sourceimpl Serialize for LivePreRollConfiguration
impl Serialize for LivePreRollConfiguration
impl StructuralPartialEq for LivePreRollConfiguration
Auto Trait Implementations
impl RefUnwindSafe for LivePreRollConfiguration
impl Send for LivePreRollConfiguration
impl Sync for LivePreRollConfiguration
impl Unpin for LivePreRollConfiguration
impl UnwindSafe for LivePreRollConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more