Struct amazon_sp_aplus_content::models::standard_comparison_product_block::StandardComparisonProductBlock
source · [−]pub struct StandardComparisonProductBlock {
pub position: i32,
pub image: Option<Box<ImageComponent>>,
pub title: Option<String>,
pub asin: Option<String>,
pub highlight: Option<bool>,
pub metrics: Option<Vec<PlainTextItem>>,
}Expand description
StandardComparisonProductBlock : The A+ Content standard comparison product block.
Fields
position: i32The rank or index of this comparison product block within the module. Different blocks cannot occupy the same position within a single module.
image: Option<Box<ImageComponent>>title: Option<String>The comparison product title.
asin: Option<String>The Amazon Standard Identification Number (ASIN).
highlight: Option<bool>Determines whether this block of content is visually highlighted.
metrics: Option<Vec<PlainTextItem>>Comparison metrics for the product.
Implementations
sourceimpl StandardComparisonProductBlock
impl StandardComparisonProductBlock
sourcepub fn new(position: i32) -> StandardComparisonProductBlock
pub fn new(position: i32) -> StandardComparisonProductBlock
The A+ Content standard comparison product block.
Trait Implementations
sourceimpl Clone for StandardComparisonProductBlock
impl Clone for StandardComparisonProductBlock
sourcefn clone(&self) -> StandardComparisonProductBlock
fn clone(&self) -> StandardComparisonProductBlock
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 Default for StandardComparisonProductBlock
impl Default for StandardComparisonProductBlock
sourcefn default() -> StandardComparisonProductBlock
fn default() -> StandardComparisonProductBlock
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for StandardComparisonProductBlock
impl<'de> Deserialize<'de> for StandardComparisonProductBlock
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<StandardComparisonProductBlock> for StandardComparisonProductBlock
impl PartialEq<StandardComparisonProductBlock> for StandardComparisonProductBlock
sourcefn eq(&self, other: &StandardComparisonProductBlock) -> bool
fn eq(&self, other: &StandardComparisonProductBlock) -> bool
impl StructuralPartialEq for StandardComparisonProductBlock
Auto Trait Implementations
impl RefUnwindSafe for StandardComparisonProductBlock
impl Send for StandardComparisonProductBlock
impl Sync for StandardComparisonProductBlock
impl Unpin for StandardComparisonProductBlock
impl UnwindSafe for StandardComparisonProductBlock
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