pub struct Image {
pub type: Option<ImageAssetType>,
pub url: String,
pub w: Option<i32>,
pub h: Option<i32>,
pub ext: Option<Map<String, Value>>,
}Expand description
5.4 Image Response Object
Corresponds to the Image Object in the request. The Image object to be used for all image elements of the Native ad such as Icons, Main Image, etc. It is recommended that if assetsurl/dcourl is being used rather than embedded assets, that an image of each recommended aspect ratio (per the Image Types table) be provided for image type 3.
Fields§
§type: Option<ImageAssetType>optional; integer; - Required for assetsurl or dcourl responses, not required for embedded asset responses. The type of image element being submitted from the Image Asset Types table.
url: Stringrequired; string; - The text associated with the text element.
w: Option<i32>recommended; integer; - Width of the image in pixels. Recommended for embedded asset responses. Required for assetsurl/dcourlresponses if multiple assets of same type submitted.
h: Option<i32>recommended; integer; - Height of the image in pixels. Recommended for embedded asset responses. Required for assetsurl/dcourl responses if multiple assets of same type submitted.
ext: Option<Map<String, Value>>optional; object; - This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification.