Struct google_docs1::api::ReplaceImageRequest
source · pub struct ReplaceImageRequest {
pub image_object_id: Option<String>,
pub image_replace_method: Option<String>,
pub uri: Option<String>,
}
Expand description
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. The ID can be retrieved from the response of a get request.
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, cannot exceed 25 megapixels, and must be in PNG, JPEG, or GIF format. The provided URI can’t surpass 2 KB in length. The URI is saved with the image, and exposed through the ImageProperties.source_uri field.
Trait Implementations§
source§impl Clone for ReplaceImageRequest
impl Clone for ReplaceImageRequest
source§fn clone(&self) -> ReplaceImageRequest
fn clone(&self) -> ReplaceImageRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ReplaceImageRequest
impl Debug for ReplaceImageRequest
source§impl Default for ReplaceImageRequest
impl Default for ReplaceImageRequest
source§fn default() -> ReplaceImageRequest
fn default() -> ReplaceImageRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ReplaceImageRequest
impl<'de> Deserialize<'de> for ReplaceImageRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ReplaceImageRequest
impl Serialize for ReplaceImageRequest
impl Part for ReplaceImageRequest
Auto Trait Implementations§
impl RefUnwindSafe for ReplaceImageRequest
impl Send for ReplaceImageRequest
impl Sync for ReplaceImageRequest
impl Unpin for ReplaceImageRequest
impl UnwindSafe for ReplaceImageRequest
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
Mutably borrows from an owned value. Read more