[][src]Struct google_docs1::ReplaceImageRequest

pub struct ReplaceImageRequest {
    pub image_object_id: Option<String>,
    pub image_replace_method: Option<String>,
    pub uri: Option<String>,
}

Replaces an existing image with a new image.

Replacing an image removes some image effects from the existing image in order to mirror the behavior of the Docs editor.

This type is not used in any activity, and only used as part of another schema.

Fields

image_object_id: Option<String>

The ID of the existing image that will be replaced.

image_replace_method: Option<String>

The replacement method.

uri: Option<String>

The URI of the new image.

The image is fetched once at insertion time and a copy is stored for display inside the document. Images must be less than 50MB in size, cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF format.

The provided URI can be at most 2 kB in length. The URI itself is saved with the image, and exposed via the ImageProperties.source_uri field.

Trait Implementations

impl Clone for ReplaceImageRequest[src]

impl Debug for ReplaceImageRequest[src]

impl Default for ReplaceImageRequest[src]

impl<'de> Deserialize<'de> for ReplaceImageRequest[src]

impl Part for ReplaceImageRequest[src]

impl Serialize for ReplaceImageRequest[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<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<T> Typeable for T where
    T: Any