Enum google_api_proto::google::ads::googleads::v15::enums::mime_type_enum::MimeType
source · #[repr(i32)]pub enum MimeType {
Show 14 variants
Unspecified = 0,
Unknown = 1,
ImageJpeg = 2,
ImageGif = 3,
ImagePng = 4,
Flash = 5,
TextHtml = 6,
Pdf = 7,
Msword = 8,
Msexcel = 9,
Rtf = 10,
AudioWav = 11,
AudioMp3 = 12,
Html5AdZip = 13,
}
Expand description
The mime type
Variants§
Unspecified = 0
The mime type has not been specified.
Unknown = 1
The received value is not known in this version.
This is a response-only value.
ImageJpeg = 2
MIME type of image/jpeg.
ImageGif = 3
MIME type of image/gif.
ImagePng = 4
MIME type of image/png.
Flash = 5
MIME type of application/x-shockwave-flash.
TextHtml = 6
MIME type of text/html.
Pdf = 7
MIME type of application/pdf.
Msword = 8
MIME type of application/msword.
Msexcel = 9
MIME type of application/vnd.ms-excel.
Rtf = 10
MIME type of application/rtf.
AudioWav = 11
MIME type of audio/wav.
AudioMp3 = 12
MIME type of audio/mp3.
Html5AdZip = 13
MIME type of application/x-html5-ad-zip.
Implementations§
source§impl MimeType
impl MimeType
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 MimeType
impl Ord for MimeType
source§impl PartialEq for MimeType
impl PartialEq for MimeType
source§impl PartialOrd for MimeType
impl PartialOrd for MimeType
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 MimeType
impl TryFrom<i32> for MimeType
§type Error = DecodeError
type Error = DecodeError
impl Copy for MimeType
impl Eq for MimeType
impl StructuralPartialEq for MimeType
Auto Trait Implementations§
impl Freeze for MimeType
impl RefUnwindSafe for MimeType
impl Send for MimeType
impl Sync for MimeType
impl Unpin for MimeType
impl UnwindSafe for MimeType
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