Enum google_api_proto::google::ads::googleads::v17::enums::image_placeholder_field_enum::ImagePlaceholderField
source · #[repr(i32)]pub enum ImagePlaceholderField {
Unspecified = 0,
Unknown = 1,
AssetId = 2,
}
Expand description
Possible values for Advertiser Provided Image placeholder fields.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
AssetId = 2
Data Type: INT64. The asset ID of the image.
Implementations§
source§impl ImagePlaceholderField
impl ImagePlaceholderField
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of ImagePlaceholderField
.
sourcepub fn from_i32(value: i32) -> Option<ImagePlaceholderField>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ImagePlaceholderField>
Converts an i32
to a ImagePlaceholderField
, or None
if value
is not a valid variant.
source§impl ImagePlaceholderField
impl ImagePlaceholderField
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 ImagePlaceholderField
impl Clone for ImagePlaceholderField
source§fn clone(&self) -> ImagePlaceholderField
fn clone(&self) -> ImagePlaceholderField
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 ImagePlaceholderField
impl Debug for ImagePlaceholderField
source§impl Default for ImagePlaceholderField
impl Default for ImagePlaceholderField
source§fn default() -> ImagePlaceholderField
fn default() -> ImagePlaceholderField
Returns the “default value” for a type. Read more
source§impl From<ImagePlaceholderField> for i32
impl From<ImagePlaceholderField> for i32
source§fn from(value: ImagePlaceholderField) -> i32
fn from(value: ImagePlaceholderField) -> i32
Converts to this type from the input type.
source§impl Hash for ImagePlaceholderField
impl Hash for ImagePlaceholderField
source§impl Ord for ImagePlaceholderField
impl Ord for ImagePlaceholderField
source§fn cmp(&self, other: &ImagePlaceholderField) -> Ordering
fn cmp(&self, other: &ImagePlaceholderField) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ImagePlaceholderField
impl PartialEq for ImagePlaceholderField
source§fn eq(&self, other: &ImagePlaceholderField) -> bool
fn eq(&self, other: &ImagePlaceholderField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ImagePlaceholderField
impl PartialOrd for ImagePlaceholderField
source§fn partial_cmp(&self, other: &ImagePlaceholderField) -> Option<Ordering>
fn partial_cmp(&self, other: &ImagePlaceholderField) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ImagePlaceholderField
impl TryFrom<i32> for ImagePlaceholderField
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<ImagePlaceholderField, UnknownEnumValue>
fn try_from(value: i32) -> Result<ImagePlaceholderField, UnknownEnumValue>
Performs the conversion.
impl Copy for ImagePlaceholderField
impl Eq for ImagePlaceholderField
impl StructuralPartialEq for ImagePlaceholderField
Auto Trait Implementations§
impl Freeze for ImagePlaceholderField
impl RefUnwindSafe for ImagePlaceholderField
impl Send for ImagePlaceholderField
impl Sync for ImagePlaceholderField
impl Unpin for ImagePlaceholderField
impl UnwindSafe for ImagePlaceholderField
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
§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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
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>
Wrap the input message
T
in a tonic::Request