Struct samling::CreateCollection
source · pub struct CreateCollection {
pub acronym: I18nString,
pub name: I18nString,
pub pricing: Vec<CollectionPricing>,
pub image: Option<ImageSource>,
pub slug: Option<Slug<Collection>>,
pub external_id: Option<ExternalId<Collection>>,
pub sizes: Vec<Ref<Size>>,
pub new_styles: Vec<Ref<Style>>,
pub new_colors: Vec<Ref<Color>>,
}Expand description
Collection, for creation
Fields§
§acronym: I18nString§name: I18nString§pricing: Vec<CollectionPricing>§image: Option<ImageSource>§slug: Option<Slug<Collection>>§external_id: Option<ExternalId<Collection>>§sizes: Vec<Ref<Size>>§new_styles: Vec<Ref<Style>>§new_colors: Vec<Ref<Color>>Trait Implementations§
source§impl Clone for CreateCollection
impl Clone for CreateCollection
source§fn clone(&self) -> CreateCollection
fn clone(&self) -> CreateCollection
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 CreateCollection
impl Debug for CreateCollection
source§impl<'de> Deserialize<'de> for CreateCollection
impl<'de> Deserialize<'de> for CreateCollection
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 ExternalIdEntity for CreateCollection
impl ExternalIdEntity for CreateCollection
type RefTarget = Collection
fn external_id(&self) -> Option<ExternalId<Self::RefTarget>>
fn set_external_id(&mut self, value: ExternalId<Self::RefTarget>)
fn update_external_id_from_ref(&mut self, ref_: &Ref<Self::RefTarget>)
fn ensure_available_external_id<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 impl 'async_trait + GenericClient,
organization_id: Id<Organization>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
source§impl From<CreateCollection> for UpdateCollection
impl From<CreateCollection> for UpdateCollection
source§fn from(collection: CreateCollection) -> Self
fn from(collection: CreateCollection) -> Self
Converts to this type from the input type.
source§impl JsonSchema for CreateCollection
impl JsonSchema for CreateCollection
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