pub struct ReplaceImageRequest {
pub image_object_id: Option<String>,
pub image_replace_method: Option<String>,
pub tab_id: 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.
tab_id: Option<String>The tab that the image to be replaced is in. When omitted, the request is applied to the first tab. In a document containing a single tab: - If provided, must match the singular tab’s ID. - If omitted, the request applies to the singular tab. In a document containing multiple tabs: - If provided, the request applies to the specified tab. - If omitted, the request applies to the first tab in the document.
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more