pub struct ContentDocument {
pub name: String,
pub content_type: ContentType,
pub content_sub_type: Option<String>,
pub locale: String,
pub content_module_list: Vec<ContentModule>,
}Expand description
ContentDocument : The A+ Content document. This is the enhanced content that is published to product detail pages.
Fields§
§name: StringThe A+ Content document name.
content_type: ContentType§content_sub_type: Option<String>The A+ Content document subtype. This represents a special-purpose type of an A+ Content document. Not every A+ Content document type has a subtype, and subtypes can change at any time.
locale: StringThe IETF language tag, which supports the primary language subtag and one secondary language subtag. The secondary language subtag is usually a regional designation. This doesn’t support subtags other than the primary and secondary subtags. Pattern: ^[a-z]{2,}-[A-Z0-9]{2,}$
content_module_list: Vec<ContentModule>A list of A+ Content modules.
Implementations§
Source§impl ContentDocument
impl ContentDocument
Sourcepub fn new(
name: String,
content_type: ContentType,
locale: String,
content_module_list: Vec<ContentModule>,
) -> ContentDocument
pub fn new( name: String, content_type: ContentType, locale: String, content_module_list: Vec<ContentModule>, ) -> ContentDocument
The A+ Content document. This is the enhanced content that is published to product detail pages.
Trait Implementations§
Source§impl Clone for ContentDocument
impl Clone for ContentDocument
Source§fn clone(&self) -> ContentDocument
fn clone(&self) -> ContentDocument
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 ContentDocument
impl Debug for ContentDocument
Source§impl Default for ContentDocument
impl Default for ContentDocument
Source§fn default() -> ContentDocument
fn default() -> ContentDocument
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContentDocument
impl<'de> Deserialize<'de> for ContentDocument
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 ContentDocument
impl PartialEq for ContentDocument
Source§impl Serialize for ContentDocument
impl Serialize for ContentDocument
impl StructuralPartialEq for ContentDocument
Auto Trait Implementations§
impl Freeze for ContentDocument
impl RefUnwindSafe for ContentDocument
impl Send for ContentDocument
impl Sync for ContentDocument
impl Unpin for ContentDocument
impl UnsafeUnpin for ContentDocument
impl UnwindSafe for ContentDocument
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