Struct gapi_grpc::google::ads::googleads::v7::resources::MediaFile[][src]

pub struct MediaFile {
    pub resource_name: String,
    pub id: i64,
    pub type: i32,
    pub mime_type: i32,
    pub source_url: String,
    pub name: String,
    pub file_size: i64,
    pub mediatype: Option<Mediatype>,
}

A media file.

Fields

resource_name: String

Immutable. The resource name of the media file. Media file resource names have the form:

customers/{customer_id}/mediaFiles/{media_file_id}

id: i64

Output only. The ID of the media file.

type: i32

Immutable. Type of the media file.

mime_type: i32

Output only. The mime type of the media file.

source_url: String

Immutable. The URL of where the original media file was downloaded from (or a file name). Only used for media of type AUDIO and IMAGE.

name: String

Immutable. The name of the media file. The name can be used by clients to help identify previously uploaded media.

file_size: i64

Output only. The size of the media file in bytes.

mediatype: Option<Mediatype>

The specific type of the media file.

Implementations

impl MediaFile[src]

pub fn type(&self) -> MediaType[src]

Returns the enum value of type, or the default if the field is set to an invalid enum value.

pub fn set_type(&mut self, value: MediaType)[src]

Sets type to the provided enum value.

pub fn mime_type(&self) -> MimeType[src]

Returns the enum value of mime_type, or the default if the field is set to an invalid enum value.

pub fn set_mime_type(&mut self, value: MimeType)[src]

Sets mime_type to the provided enum value.

Trait Implementations

impl Clone for MediaFile[src]

impl Debug for MediaFile[src]

impl Default for MediaFile[src]

impl Message for MediaFile[src]

impl PartialEq<MediaFile> for MediaFile[src]

impl StructuralPartialEq for MediaFile[src]

Auto Trait Implementations

impl RefUnwindSafe for MediaFile

impl Send for MediaFile

impl Sync for MediaFile

impl Unpin for MediaFile

impl UnwindSafe for MediaFile

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]