Struct samling::NestedStyle
source · pub struct NestedStyle {Show 17 fields
pub id: Id<Style>,
pub slug: Slug<Style>,
pub number: String,
pub name: I18nString,
pub description: I18nString,
pub core: Option<bool>,
pub country_of_origin: Option<String>,
pub tariff_no: Option<String>,
pub net_weight: Decimal,
pub gross_weight: Decimal,
pub unit_volume: Decimal,
pub categories: Vec<CategorySummary>,
pub external_id: Option<ExternalId<Style>>,
pub colors: Vec<NestedColor>,
pub prices: Vec<NestedPrice>,
pub attributes: Vec<AttributeSummary>,
pub is_new: Option<bool>,
}Expand description
Style nested with colors and sizes, with some metadata fields excluded
Fields§
§id: Id<Style>§slug: Slug<Style>§number: String§name: I18nString§description: I18nString§core: Option<bool>§country_of_origin: Option<String>§tariff_no: Option<String>§net_weight: Decimal§gross_weight: Decimal§unit_volume: Decimal§categories: Vec<CategorySummary>§external_id: Option<ExternalId<Style>>§colors: Vec<NestedColor>§prices: Vec<NestedPrice>§attributes: Vec<AttributeSummary>§is_new: Option<bool>Implementations§
source§impl NestedStyle
impl NestedStyle
pub fn into_summary(self) -> NestedStyleSummary
pub fn primary_image(&self) -> Option<ImageSummary>
Trait Implementations§
source§impl Clone for NestedStyle
impl Clone for NestedStyle
source§fn clone(&self) -> NestedStyle
fn clone(&self) -> NestedStyle
Returns a copy 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 NestedStyle
impl Debug for NestedStyle
source§impl<'de> Deserialize<'de> for NestedStyle
impl<'de> Deserialize<'de> for NestedStyle
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 JsonSchema for NestedStyle
impl JsonSchema for NestedStyle
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read more