Enum google_api_proto::google::ads::admanager::v1::size_type_enum::SizeType
source · #[repr(i32)]pub enum SizeType {
Unspecified = 0,
Pixel = 1,
AspectRatio = 2,
Interstitial = 3,
Ignored = 4,
Native = 5,
Fluid = 6,
Audio = 7,
}
Expand description
The different Size types for an ad.
Variants§
Unspecified = 0
Default value. This value is unused.
Pixel = 1
Dimension based size, an actual height and width in pixels.
AspectRatio = 2
Size is expressed as a ratio. For example, 4:1 could be met by a 100 x 25 sized image.
Interstitial = 3
Out-of-page (Interstitial) size that is not related to the slot it is served. This must be used with 1x1 size.
Ignored = 4
Size is ignored. This must be used with 1x1 size.
Native = 5
Native size, which is a function of the how the client renders the creative. This must be used with 1x1 size.
Fluid = 6
Fluid size. Automatically sizes the ad by filling the width of the enclosing column and adjusting the height as appropriate. This must be used with 1x1 size.
Audio = 7
Audio size. Used with audio ads. This must be used with 1x1 size.
Implementations§
source§impl SizeType
impl SizeType
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 Ord for SizeType
impl Ord for SizeType
source§impl PartialEq for SizeType
impl PartialEq for SizeType
source§impl PartialOrd for SizeType
impl PartialOrd for SizeType
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 SizeType
impl TryFrom<i32> for SizeType
§type Error = DecodeError
type Error = DecodeError
impl Copy for SizeType
impl Eq for SizeType
impl StructuralPartialEq for SizeType
Auto Trait Implementations§
impl Freeze for SizeType
impl RefUnwindSafe for SizeType
impl Send for SizeType
impl Sync for SizeType
impl Unpin for SizeType
impl UnwindSafe for SizeType
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