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 Uploads API.
image_crop_specification: Box<ImageCropSpecification>§alt_text: StringThe alternative text for the image.
Implementations§
Source§impl 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§
Source§impl Clone for ImageComponent
impl Clone for ImageComponent
Source§fn clone(&self) -> ImageComponent
fn clone(&self) -> ImageComponent
Returns a duplicate 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 ImageComponent
impl Debug for ImageComponent
Source§impl Default for ImageComponent
impl Default for ImageComponent
Source§fn default() -> ImageComponent
fn default() -> ImageComponent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageComponent
impl<'de> Deserialize<'de> for ImageComponent
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 PartialEq for ImageComponent
impl PartialEq for ImageComponent
Source§impl Serialize for ImageComponent
impl Serialize for ImageComponent
impl StructuralPartialEq for ImageComponent
Auto Trait Implementations§
impl Freeze for ImageComponent
impl RefUnwindSafe for ImageComponent
impl Send for ImageComponent
impl Sync for ImageComponent
impl Unpin for ImageComponent
impl UnsafeUnpin for ImageComponent
impl UnwindSafe for ImageComponent
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