pub struct ImageComponent {
pub upload_destination_id: String,
pub image_crop_specification: Box<ImageCropSpecification>,
pub alt_text: String,
}Expand description
ImageComponent : A reference to an image, hosted in the A+ Content media library.
Fields
upload_destination_id: StringThis identifier is provided by the Selling Partner API for Uploads.
image_crop_specification: Box<ImageCropSpecification>alt_text: StringThe alternative text for the image.
Implementations
sourceimpl ImageComponent
impl ImageComponent
sourcepub fn new(
upload_destination_id: String,
image_crop_specification: ImageCropSpecification,
alt_text: String
) -> ImageComponent
pub fn new(
upload_destination_id: String,
image_crop_specification: ImageCropSpecification,
alt_text: String
) -> ImageComponent
A reference to an image, hosted in the A+ Content media library.
Trait Implementations
sourceimpl Clone for ImageComponent
impl Clone for ImageComponent
sourcefn clone(&self) -> ImageComponent
fn clone(&self) -> ImageComponent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ImageComponent
impl Debug for ImageComponent
sourceimpl Default for ImageComponent
impl Default for ImageComponent
sourcefn default() -> ImageComponent
fn default() -> ImageComponent
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ImageComponent
impl<'de> Deserialize<'de> for ImageComponent
sourcefn 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
sourceimpl PartialEq<ImageComponent> for ImageComponent
impl PartialEq<ImageComponent> for ImageComponent
sourcefn eq(&self, other: &ImageComponent) -> bool
fn eq(&self, other: &ImageComponent) -> bool
sourceimpl Serialize for ImageComponent
impl Serialize for ImageComponent
impl StructuralPartialEq for ImageComponent
Auto Trait Implementations
impl RefUnwindSafe for ImageComponent
impl Send for ImageComponent
impl Sync for ImageComponent
impl Unpin for ImageComponent
impl UnwindSafe for ImageComponent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more