pub struct CreativeConfig {
pub creative_type: Option<String>,
pub display_creative_config: Option<InventorySourceDisplayCreativeConfig>,
pub video_creative_config: Option<InventorySourceVideoCreativeConfig>,
}
Expand description
Creative requirements configuration for the inventory source.
This type is not used in any activity, and only used as part of another schema.
Fields§
§creative_type: Option<String>
The type of creative that can be assigned to the inventory source. Only the following types are supported: * CREATIVE_TYPE_STANDARD
* CREATIVE_TYPE_VIDEO
display_creative_config: Option<InventorySourceDisplayCreativeConfig>
The configuration for display creatives. Applicable when creative_type is CREATIVE_TYPE_STANDARD
.
video_creative_config: Option<InventorySourceVideoCreativeConfig>
The configuration for video creatives. Applicable when creative_type is CREATIVE_TYPE_VIDEO
.
Trait Implementations§
Source§impl Clone for CreativeConfig
impl Clone for CreativeConfig
Source§fn clone(&self) -> CreativeConfig
fn clone(&self) -> CreativeConfig
Returns a copy 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 Debug for CreativeConfig
impl Debug for CreativeConfig
Source§impl Default for CreativeConfig
impl Default for CreativeConfig
Source§fn default() -> CreativeConfig
fn default() -> CreativeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreativeConfig
impl<'de> Deserialize<'de> for CreativeConfig
Source§fn 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
Source§impl Serialize for CreativeConfig
impl Serialize for CreativeConfig
impl Part for CreativeConfig
Auto Trait Implementations§
impl Freeze for CreativeConfig
impl RefUnwindSafe for CreativeConfig
impl Send for CreativeConfig
impl Sync for CreativeConfig
impl Unpin for CreativeConfig
impl UnwindSafe for CreativeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more