Struct samling::NestedSize
source · pub struct NestedSize {
pub id: Id<Size>,
pub number: String,
pub position: u8,
pub name: I18nString,
pub slug: Slug<Size>,
pub external_id: Option<ExternalId<Size>>,
pub service_item: Option<bool>,
pub ean_code: Option<String>,
pub status: Option<String>,
pub delivery_period: Option<Date>,
}Expand description
Nested size (well, used by NestedColor, so color field isn’t needed)
Fields§
§id: Id<Size>§number: String§position: u8§name: I18nString§slug: Slug<Size>§external_id: Option<ExternalId<Size>>§service_item: Option<bool>§ean_code: Option<String>§status: Option<String>§delivery_period: Option<Date>Implementations§
source§impl NestedSize
impl NestedSize
pub fn into_summary(self) -> NestedSizeSummary
Trait Implementations§
source§impl Clone for NestedSize
impl Clone for NestedSize
source§fn clone(&self) -> NestedSize
fn clone(&self) -> NestedSize
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 NestedSize
impl Debug for NestedSize
source§impl<'de> Deserialize<'de> for NestedSize
impl<'de> Deserialize<'de> for NestedSize
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 NestedSize
impl JsonSchema for NestedSize
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