Enum google_api_proto::google::ads::admanager::v1::creative_rotation_type_enum::CreativeRotationType
source · #[repr(i32)]pub enum CreativeRotationType {
Unspecified = 0,
Evenly = 1,
Optimized = 2,
Weighted = 3,
Sequential = 4,
}
Expand description
The strategy to use for displaying multiple [creatives][google.ads.admanager.v1.Creative] that are associated with a line item.
Variants§
Unspecified = 0
Not specified value
Evenly = 1
Creatives are displayed approximately the same number of times over the duration of the line item.
Optimized = 2
Creatives are served approximately proportionally to their performance.
Weighted = 3
Creatives are served approximately proportionally to their weights, set
on the LineItemCreativeAssociation
.
Sequential = 4
Creatives are served exactly in sequential order, aka Storyboarding. Set
on the LineItemCreativeAssociation
.
Implementations§
source§impl CreativeRotationType
impl CreativeRotationType
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of CreativeRotationType
.
sourcepub fn from_i32(value: i32) -> Option<CreativeRotationType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<CreativeRotationType>
Converts an i32
to a CreativeRotationType
, or None
if value
is not a valid variant.
source§impl CreativeRotationType
impl CreativeRotationType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for CreativeRotationType
impl Clone for CreativeRotationType
source§fn clone(&self) -> CreativeRotationType
fn clone(&self) -> CreativeRotationType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreativeRotationType
impl Debug for CreativeRotationType
source§impl Default for CreativeRotationType
impl Default for CreativeRotationType
source§fn default() -> CreativeRotationType
fn default() -> CreativeRotationType
source§impl From<CreativeRotationType> for i32
impl From<CreativeRotationType> for i32
source§fn from(value: CreativeRotationType) -> i32
fn from(value: CreativeRotationType) -> i32
source§impl Hash for CreativeRotationType
impl Hash for CreativeRotationType
source§impl Ord for CreativeRotationType
impl Ord for CreativeRotationType
source§fn cmp(&self, other: &CreativeRotationType) -> Ordering
fn cmp(&self, other: &CreativeRotationType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for CreativeRotationType
impl PartialEq for CreativeRotationType
source§fn eq(&self, other: &CreativeRotationType) -> bool
fn eq(&self, other: &CreativeRotationType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CreativeRotationType
impl PartialOrd for CreativeRotationType
source§fn partial_cmp(&self, other: &CreativeRotationType) -> Option<Ordering>
fn partial_cmp(&self, other: &CreativeRotationType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for CreativeRotationType
impl TryFrom<i32> for CreativeRotationType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<CreativeRotationType, DecodeError>
fn try_from(value: i32) -> Result<CreativeRotationType, DecodeError>
impl Copy for CreativeRotationType
impl Eq for CreativeRotationType
impl StructuralPartialEq for CreativeRotationType
Auto Trait Implementations§
impl Freeze for CreativeRotationType
impl RefUnwindSafe for CreativeRotationType
impl Send for CreativeRotationType
impl Sync for CreativeRotationType
impl Unpin for CreativeRotationType
impl UnwindSafe for CreativeRotationType
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request