pub struct TextElement {
pub description: String,
pub short_description: String,
pub text_element_type: TextElementType,
}Expand description
TextElement : Additional texts which should be displayed to the customer to further describe the product being offered.
Fields§
§description: StringFull version of the text for display when sufficient space is available.
short_description: StringBrief version of the text for display in space restricted environments, e.g. mobile phone. No longer than 64 characters.
text_element_type: TextElementTypeImplementations§
Source§impl TextElement
impl TextElement
Sourcepub fn new(
description: String,
short_description: String,
text_element_type: TextElementType,
) -> TextElement
pub fn new( description: String, short_description: String, text_element_type: TextElementType, ) -> TextElement
Additional texts which should be displayed to the customer to further describe the product being offered.
Trait Implementations§
Source§impl Clone for TextElement
impl Clone for TextElement
Source§fn clone(&self) -> TextElement
fn clone(&self) -> TextElement
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 TextElement
impl Debug for TextElement
Source§impl Default for TextElement
impl Default for TextElement
Source§fn default() -> TextElement
fn default() -> TextElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextElement
impl<'de> Deserialize<'de> for TextElement
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 TextElement
impl PartialEq for TextElement
Source§impl Serialize for TextElement
impl Serialize for TextElement
impl StructuralPartialEq for TextElement
Auto Trait Implementations§
impl Freeze for TextElement
impl RefUnwindSafe for TextElement
impl Send for TextElement
impl Sync for TextElement
impl Unpin for TextElement
impl UnwindSafe for TextElement
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