Enum googapis::google::ads::googleads::v9::errors::media_file_error_enum::MediaFileError[][src]

#[repr(i32)]
pub enum MediaFileError {
Show 25 variants Unspecified, Unknown, CannotCreateStandardIcon, CannotSelectStandardIconWithOtherTypes, CannotSpecifyMediaFileIdAndData, DuplicateMedia, EmptyField, ResourceReferencedInMultipleOps, FieldNotSupportedForMediaSubType, InvalidMediaFileId, InvalidMediaSubType, InvalidMediaFileType, InvalidMimeType, InvalidReferenceId, InvalidYouTubeId, MediaFileFailedTranscoding, MediaNotTranscoded, MediaTypeDoesNotMatchMediaFileType, NoFieldsSpecified, NullReferenceIdAndMediaId, TooLong, UnsupportedType, YouTubeServiceUnavailable, YouTubeVideoHasNonPositiveDuration, YouTubeVideoNotFound,
}
Expand description

Enum describing possible media file errors.

Variants

Unspecified

Enum unspecified.

Unknown

The received error code is not known in this version.

CannotCreateStandardIcon

Cannot create a standard icon type.

CannotSelectStandardIconWithOtherTypes

May only select Standard Icons alone.

CannotSpecifyMediaFileIdAndData

Image contains both a media file ID and data.

DuplicateMedia

A media file with given type and reference ID already exists.

EmptyField

A required field was not specified or is an empty string.

ResourceReferencedInMultipleOps

A media file may only be modified once per call.

FieldNotSupportedForMediaSubType

Field is not supported for the media sub type.

InvalidMediaFileId

The media file ID is invalid.

InvalidMediaSubType

The media subtype is invalid.

InvalidMediaFileType

The media file type is invalid.

InvalidMimeType

The mimetype is invalid.

InvalidReferenceId

The media reference ID is invalid.

InvalidYouTubeId

The YouTube video ID is invalid.

MediaFileFailedTranscoding

Media file has failed transcoding

MediaNotTranscoded

Media file has not been transcoded.

MediaTypeDoesNotMatchMediaFileType

The media type does not match the actual media file’s type.

NoFieldsSpecified

None of the fields have been specified.

NullReferenceIdAndMediaId

One of reference ID or media file ID must be specified.

TooLong

The string has too many characters.

UnsupportedType

The specified type is not supported.

YouTubeServiceUnavailable

YouTube is unavailable for requesting video data.

YouTubeVideoHasNonPositiveDuration

The YouTube video has a non positive duration.

YouTubeVideoNotFound

The YouTube video ID is syntactically valid but the video was not found.

Implementations

Returns true if value is a variant of MediaFileError.

Converts an i32 to a MediaFileError, or None if value is not a valid variant.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more