Enum googapis::google::ads::googleads::v9::errors::image_error_enum::ImageError[][src]

#[repr(i32)]
pub enum ImageError {
Show 41 variants Unspecified, Unknown, InvalidImage, StorageError, BadRequest, UnexpectedSize, AnimatedNotAllowed, AnimationTooLong, ServerError, CmykJpegNotAllowed, FlashNotAllowed, FlashWithoutClicktag, FlashErrorAfterFixingClickTag, AnimatedVisualEffect, FlashError, LayoutProblem, ProblemReadingImageFile, ErrorStoringImage, AspectRatioNotAllowed, FlashHasNetworkObjects, FlashHasNetworkMethods, FlashHasUrl, FlashHasMouseTracking, FlashHasRandomNum, FlashSelfTargets, FlashBadGeturlTarget, FlashVersionNotSupported, FlashWithoutHardCodedClickUrl, InvalidFlashFile, FailedToFixClickTagInFlash, FlashAccessesNetworkResources, FlashExternalJsCall, FlashExternalFsCall, FileTooLarge, ImageDataTooLarge, ImageProcessingError, ImageTooSmall, InvalidInput, ProblemReadingFile, ImageConstraintsViolated, FormatNotAllowed,
}
Expand description

Enum describing possible image errors.

Variants

Unspecified

Enum unspecified.

Unknown

The received error code is not known in this version.

InvalidImage

The image is not valid.

StorageError

The image could not be stored.

BadRequest

There was a problem with the request.

UnexpectedSize

The image is not of legal dimensions.

AnimatedNotAllowed

Animated image are not permitted.

AnimationTooLong

Animation is too long.

ServerError

There was an error on the server.

CmykJpegNotAllowed

Image cannot be in CMYK color format.

FlashNotAllowed

Flash images are not permitted.

FlashWithoutClicktag

Flash images must support clickTag.

FlashErrorAfterFixingClickTag

A flash error has occurred after fixing the click tag.

AnimatedVisualEffect

Unacceptable visual effects.

FlashError

There was a problem with the flash image.

LayoutProblem

Incorrect image layout.

ProblemReadingImageFile

There was a problem reading the image file.

ErrorStoringImage

There was an error storing the image.

AspectRatioNotAllowed

The aspect ratio of the image is not allowed.

FlashHasNetworkObjects

Flash cannot have network objects.

FlashHasNetworkMethods

Flash cannot have network methods.

FlashHasUrl

Flash cannot have a Url.

FlashHasMouseTracking

Flash cannot use mouse tracking.

FlashHasRandomNum

Flash cannot have a random number.

FlashSelfTargets

Ad click target cannot be ‘_self’.

FlashBadGeturlTarget

GetUrl method should only use ‘_blank’.

FlashVersionNotSupported

Flash version is not supported.

FlashWithoutHardCodedClickUrl

Flash movies need to have hard coded click URL or clickTAG

InvalidFlashFile

Uploaded flash file is corrupted.

FailedToFixClickTagInFlash

Uploaded flash file can be parsed, but the click tag can not be fixed properly.

FlashAccessesNetworkResources

Flash movie accesses network resources

FlashExternalJsCall

Flash movie attempts to call external javascript code

FlashExternalFsCall

Flash movie attempts to call flash system commands

FileTooLarge

Image file is too large.

ImageDataTooLarge

Image data is too large.

ImageProcessingError

Error while processing the image.

ImageTooSmall

Image is too small.

InvalidInput

Input was invalid.

ProblemReadingFile

There was a problem reading the image file.

ImageConstraintsViolated

Image constraints are violated, but details like ASPECT_RATIO_NOT_ALLOWED can’t be provided. This happens when asset spec contains more than one constraint and different criteria of different constraints are violated.

FormatNotAllowed

Image format is not allowed.

Implementations

Returns true if value is a variant of ImageError.

Converts an i32 to a ImageError, 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