pub trait ProductTrait {
Show 112 methods // Required methods fn get_additional_property(&self) -> &[AdditionalPropertyProperty]; fn take_additional_property(&mut self) -> Vec<AdditionalPropertyProperty>; fn get_aggregate_rating(&self) -> &[AggregateRatingProperty]; fn take_aggregate_rating(&mut self) -> Vec<AggregateRatingProperty>; fn get_asin(&self) -> &[AsinProperty]; fn take_asin(&mut self) -> Vec<AsinProperty>; fn get_audience(&self) -> &[AudienceProperty]; fn take_audience(&mut self) -> Vec<AudienceProperty>; fn get_award(&self) -> &[AwardProperty]; fn take_award(&mut self) -> Vec<AwardProperty>; fn get_awards(&self) -> &[AwardsProperty]; fn take_awards(&mut self) -> Vec<AwardsProperty>; fn get_brand(&self) -> &[BrandProperty]; fn take_brand(&mut self) -> Vec<BrandProperty>; fn get_category(&self) -> &[CategoryProperty]; fn take_category(&mut self) -> Vec<CategoryProperty>; fn get_color(&self) -> &[ColorProperty]; fn take_color(&mut self) -> Vec<ColorProperty>; fn get_country_of_assembly(&self) -> &[CountryOfAssemblyProperty]; fn take_country_of_assembly(&mut self) -> Vec<CountryOfAssemblyProperty>; fn get_country_of_last_processing( &self ) -> &[CountryOfLastProcessingProperty]; fn take_country_of_last_processing( &mut self ) -> Vec<CountryOfLastProcessingProperty>; fn get_country_of_origin(&self) -> &[CountryOfOriginProperty]; fn take_country_of_origin(&mut self) -> Vec<CountryOfOriginProperty>; fn get_depth(&self) -> &[DepthProperty]; fn take_depth(&mut self) -> Vec<DepthProperty>; fn get_funding(&self) -> &[FundingProperty]; fn take_funding(&mut self) -> Vec<FundingProperty>; fn get_gtin(&self) -> &[GtinProperty]; fn take_gtin(&mut self) -> Vec<GtinProperty>; fn get_gtin_12(&self) -> &[Gtin12Property]; fn take_gtin_12(&mut self) -> Vec<Gtin12Property>; fn get_gtin_13(&self) -> &[Gtin13Property]; fn take_gtin_13(&mut self) -> Vec<Gtin13Property>; fn get_gtin_14(&self) -> &[Gtin14Property]; fn take_gtin_14(&mut self) -> Vec<Gtin14Property>; fn get_gtin_8(&self) -> &[Gtin8Property]; fn take_gtin_8(&mut self) -> Vec<Gtin8Property>; fn get_has_adult_consideration(&self) -> &[HasAdultConsiderationProperty]; fn take_has_adult_consideration( &mut self ) -> Vec<HasAdultConsiderationProperty>; fn get_has_energy_consumption_details( &self ) -> &[HasEnergyConsumptionDetailsProperty]; fn take_has_energy_consumption_details( &mut self ) -> Vec<HasEnergyConsumptionDetailsProperty>; fn get_has_measurement(&self) -> &[HasMeasurementProperty]; fn take_has_measurement(&mut self) -> Vec<HasMeasurementProperty>; fn get_has_merchant_return_policy( &self ) -> &[HasMerchantReturnPolicyProperty]; fn take_has_merchant_return_policy( &mut self ) -> Vec<HasMerchantReturnPolicyProperty>; fn get_has_product_return_policy(&self) -> &[HasProductReturnPolicyProperty]; fn take_has_product_return_policy( &mut self ) -> Vec<HasProductReturnPolicyProperty>; fn get_height(&self) -> &[HeightProperty]; fn take_height(&mut self) -> Vec<HeightProperty>; fn get_in_product_group_with_id(&self) -> &[InProductGroupWithIdProperty]; fn take_in_product_group_with_id( &mut self ) -> Vec<InProductGroupWithIdProperty>; fn get_is_accessory_or_spare_part_for( &self ) -> &[IsAccessoryOrSparePartForProperty]; fn take_is_accessory_or_spare_part_for( &mut self ) -> Vec<IsAccessoryOrSparePartForProperty>; fn get_is_consumable_for(&self) -> &[IsConsumableForProperty]; fn take_is_consumable_for(&mut self) -> Vec<IsConsumableForProperty>; fn get_is_family_friendly(&self) -> &[IsFamilyFriendlyProperty]; fn take_is_family_friendly(&mut self) -> Vec<IsFamilyFriendlyProperty>; fn get_is_related_to(&self) -> &[IsRelatedToProperty]; fn take_is_related_to(&mut self) -> Vec<IsRelatedToProperty>; fn get_is_similar_to(&self) -> &[IsSimilarToProperty]; fn take_is_similar_to(&mut self) -> Vec<IsSimilarToProperty>; fn get_is_variant_of(&self) -> &[IsVariantOfProperty]; fn take_is_variant_of(&mut self) -> Vec<IsVariantOfProperty>; fn get_item_condition(&self) -> &[ItemConditionProperty]; fn take_item_condition(&mut self) -> Vec<ItemConditionProperty>; fn get_keywords(&self) -> &[KeywordsProperty]; fn take_keywords(&mut self) -> Vec<KeywordsProperty>; fn get_logo(&self) -> &[LogoProperty]; fn take_logo(&mut self) -> Vec<LogoProperty>; fn get_manufacturer(&self) -> &[ManufacturerProperty]; fn take_manufacturer(&mut self) -> Vec<ManufacturerProperty>; fn get_material(&self) -> &[MaterialProperty]; fn take_material(&mut self) -> Vec<MaterialProperty>; fn get_mobile_url(&self) -> &[MobileUrlProperty]; fn take_mobile_url(&mut self) -> Vec<MobileUrlProperty>; fn get_model(&self) -> &[ModelProperty]; fn take_model(&mut self) -> Vec<ModelProperty>; fn get_mpn(&self) -> &[MpnProperty]; fn take_mpn(&mut self) -> Vec<MpnProperty>; fn get_negative_notes(&self) -> &[NegativeNotesProperty]; fn take_negative_notes(&mut self) -> Vec<NegativeNotesProperty>; fn get_nsn(&self) -> &[NsnProperty]; fn take_nsn(&mut self) -> Vec<NsnProperty>; fn get_offers(&self) -> &[OffersProperty]; fn take_offers(&mut self) -> Vec<OffersProperty>; fn get_pattern(&self) -> &[PatternProperty]; fn take_pattern(&mut self) -> Vec<PatternProperty>; fn get_positive_notes(&self) -> &[PositiveNotesProperty]; fn take_positive_notes(&mut self) -> Vec<PositiveNotesProperty>; fn get_product_id(&self) -> &[ProductIdProperty]; fn take_product_id(&mut self) -> Vec<ProductIdProperty>; fn get_production_date(&self) -> &[ProductionDateProperty]; fn take_production_date(&mut self) -> Vec<ProductionDateProperty>; fn get_purchase_date(&self) -> &[PurchaseDateProperty]; fn take_purchase_date(&mut self) -> Vec<PurchaseDateProperty>; fn get_release_date(&self) -> &[ReleaseDateProperty]; fn take_release_date(&mut self) -> Vec<ReleaseDateProperty>; fn get_review(&self) -> &[ReviewProperty]; fn take_review(&mut self) -> Vec<ReviewProperty>; fn get_reviews(&self) -> &[ReviewsProperty]; fn take_reviews(&mut self) -> Vec<ReviewsProperty>; fn get_size(&self) -> &[SizeProperty]; fn take_size(&mut self) -> Vec<SizeProperty>; fn get_sku(&self) -> &[SkuProperty]; fn take_sku(&mut self) -> Vec<SkuProperty>; fn get_slogan(&self) -> &[SloganProperty]; fn take_slogan(&mut self) -> Vec<SloganProperty>; fn get_weight(&self) -> &[WeightProperty]; fn take_weight(&mut self) -> Vec<WeightProperty>; fn get_width(&self) -> &[WidthProperty]; fn take_width(&mut self) -> Vec<WidthProperty>;
}
Expand description

This trait is for properties from https://schema.org/Product.

Required Methods§

source

fn get_additional_property(&self) -> &[AdditionalPropertyProperty]

Get https://schema.org/additionalProperty from Self as borrowed slice.

source

fn take_additional_property(&mut self) -> Vec<AdditionalPropertyProperty>

Take https://schema.org/additionalProperty from Self as owned vector.

source

fn get_aggregate_rating(&self) -> &[AggregateRatingProperty]

Get https://schema.org/aggregateRating from Self as borrowed slice.

source

fn take_aggregate_rating(&mut self) -> Vec<AggregateRatingProperty>

Take https://schema.org/aggregateRating from Self as owned vector.

source

fn get_asin(&self) -> &[AsinProperty]

Get https://schema.org/asin from Self as borrowed slice.

source

fn take_asin(&mut self) -> Vec<AsinProperty>

Take https://schema.org/asin from Self as owned vector.

source

fn get_audience(&self) -> &[AudienceProperty]

Get https://schema.org/audience from Self as borrowed slice.

source

fn take_audience(&mut self) -> Vec<AudienceProperty>

Take https://schema.org/audience from Self as owned vector.

source

fn get_award(&self) -> &[AwardProperty]

Get https://schema.org/award from Self as borrowed slice.

source

fn take_award(&mut self) -> Vec<AwardProperty>

Take https://schema.org/award from Self as owned vector.

source

fn get_awards(&self) -> &[AwardsProperty]

👎Deprecated: This schema is superseded by https://schema.org/award.

Get https://schema.org/awards from Self as borrowed slice.

source

fn take_awards(&mut self) -> Vec<AwardsProperty>

👎Deprecated: This schema is superseded by https://schema.org/award.

Take https://schema.org/awards from Self as owned vector.

source

fn get_brand(&self) -> &[BrandProperty]

Get https://schema.org/brand from Self as borrowed slice.

source

fn take_brand(&mut self) -> Vec<BrandProperty>

Take https://schema.org/brand from Self as owned vector.

source

fn get_category(&self) -> &[CategoryProperty]

Get https://schema.org/category from Self as borrowed slice.

source

fn take_category(&mut self) -> Vec<CategoryProperty>

Take https://schema.org/category from Self as owned vector.

source

fn get_color(&self) -> &[ColorProperty]

Get https://schema.org/color from Self as borrowed slice.

source

fn take_color(&mut self) -> Vec<ColorProperty>

Take https://schema.org/color from Self as owned vector.

source

fn get_country_of_assembly(&self) -> &[CountryOfAssemblyProperty]

Get https://schema.org/countryOfAssembly from Self as borrowed slice.

source

fn take_country_of_assembly(&mut self) -> Vec<CountryOfAssemblyProperty>

Take https://schema.org/countryOfAssembly from Self as owned vector.

source

fn get_country_of_last_processing(&self) -> &[CountryOfLastProcessingProperty]

source

fn take_country_of_last_processing( &mut self ) -> Vec<CountryOfLastProcessingProperty>

source

fn get_country_of_origin(&self) -> &[CountryOfOriginProperty]

Get https://schema.org/countryOfOrigin from Self as borrowed slice.

source

fn take_country_of_origin(&mut self) -> Vec<CountryOfOriginProperty>

Take https://schema.org/countryOfOrigin from Self as owned vector.

source

fn get_depth(&self) -> &[DepthProperty]

Get https://schema.org/depth from Self as borrowed slice.

source

fn take_depth(&mut self) -> Vec<DepthProperty>

Take https://schema.org/depth from Self as owned vector.

source

fn get_funding(&self) -> &[FundingProperty]

Get https://schema.org/funding from Self as borrowed slice.

source

fn take_funding(&mut self) -> Vec<FundingProperty>

Take https://schema.org/funding from Self as owned vector.

source

fn get_gtin(&self) -> &[GtinProperty]

Get https://schema.org/gtin from Self as borrowed slice.

source

fn take_gtin(&mut self) -> Vec<GtinProperty>

Take https://schema.org/gtin from Self as owned vector.

source

fn get_gtin_12(&self) -> &[Gtin12Property]

Get https://schema.org/gtin12 from Self as borrowed slice.

source

fn take_gtin_12(&mut self) -> Vec<Gtin12Property>

Take https://schema.org/gtin12 from Self as owned vector.

source

fn get_gtin_13(&self) -> &[Gtin13Property]

Get https://schema.org/gtin13 from Self as borrowed slice.

source

fn take_gtin_13(&mut self) -> Vec<Gtin13Property>

Take https://schema.org/gtin13 from Self as owned vector.

source

fn get_gtin_14(&self) -> &[Gtin14Property]

Get https://schema.org/gtin14 from Self as borrowed slice.

source

fn take_gtin_14(&mut self) -> Vec<Gtin14Property>

Take https://schema.org/gtin14 from Self as owned vector.

source

fn get_gtin_8(&self) -> &[Gtin8Property]

Get https://schema.org/gtin8 from Self as borrowed slice.

source

fn take_gtin_8(&mut self) -> Vec<Gtin8Property>

Take https://schema.org/gtin8 from Self as owned vector.

source

fn get_has_adult_consideration(&self) -> &[HasAdultConsiderationProperty]

Get https://schema.org/hasAdultConsideration from Self as borrowed slice.

source

fn take_has_adult_consideration(&mut self) -> Vec<HasAdultConsiderationProperty>

source

fn get_has_energy_consumption_details( &self ) -> &[HasEnergyConsumptionDetailsProperty]

source

fn take_has_energy_consumption_details( &mut self ) -> Vec<HasEnergyConsumptionDetailsProperty>

source

fn get_has_measurement(&self) -> &[HasMeasurementProperty]

Get https://schema.org/hasMeasurement from Self as borrowed slice.

source

fn take_has_measurement(&mut self) -> Vec<HasMeasurementProperty>

Take https://schema.org/hasMeasurement from Self as owned vector.

source

fn get_has_merchant_return_policy(&self) -> &[HasMerchantReturnPolicyProperty]

source

fn take_has_merchant_return_policy( &mut self ) -> Vec<HasMerchantReturnPolicyProperty>

source

fn get_has_product_return_policy(&self) -> &[HasProductReturnPolicyProperty]

👎Deprecated: This schema is archived, see https://schema.org/docs/attic.home.html. This schema is superseded by https://schema.org/hasMerchantReturnPolicy.

Get https://schema.org/hasProductReturnPolicy from Self as borrowed slice.

source

fn take_has_product_return_policy( &mut self ) -> Vec<HasProductReturnPolicyProperty>

👎Deprecated: This schema is archived, see https://schema.org/docs/attic.home.html. This schema is superseded by https://schema.org/hasMerchantReturnPolicy.
source

fn get_height(&self) -> &[HeightProperty]

Get https://schema.org/height from Self as borrowed slice.

source

fn take_height(&mut self) -> Vec<HeightProperty>

Take https://schema.org/height from Self as owned vector.

source

fn get_in_product_group_with_id(&self) -> &[InProductGroupWithIdProperty]

Get https://schema.org/inProductGroupWithID from Self as borrowed slice.

source

fn take_in_product_group_with_id(&mut self) -> Vec<InProductGroupWithIdProperty>

Take https://schema.org/inProductGroupWithID from Self as owned vector.

source

fn get_is_accessory_or_spare_part_for( &self ) -> &[IsAccessoryOrSparePartForProperty]

source

fn take_is_accessory_or_spare_part_for( &mut self ) -> Vec<IsAccessoryOrSparePartForProperty>

source

fn get_is_consumable_for(&self) -> &[IsConsumableForProperty]

Get https://schema.org/isConsumableFor from Self as borrowed slice.

source

fn take_is_consumable_for(&mut self) -> Vec<IsConsumableForProperty>

Take https://schema.org/isConsumableFor from Self as owned vector.

source

fn get_is_family_friendly(&self) -> &[IsFamilyFriendlyProperty]

Get https://schema.org/isFamilyFriendly from Self as borrowed slice.

source

fn take_is_family_friendly(&mut self) -> Vec<IsFamilyFriendlyProperty>

Take https://schema.org/isFamilyFriendly from Self as owned vector.

Get https://schema.org/isRelatedTo from Self as borrowed slice.

Take https://schema.org/isRelatedTo from Self as owned vector.

source

fn get_is_similar_to(&self) -> &[IsSimilarToProperty]

Get https://schema.org/isSimilarTo from Self as borrowed slice.

source

fn take_is_similar_to(&mut self) -> Vec<IsSimilarToProperty>

Take https://schema.org/isSimilarTo from Self as owned vector.

source

fn get_is_variant_of(&self) -> &[IsVariantOfProperty]

Get https://schema.org/isVariantOf from Self as borrowed slice.

source

fn take_is_variant_of(&mut self) -> Vec<IsVariantOfProperty>

Take https://schema.org/isVariantOf from Self as owned vector.

source

fn get_item_condition(&self) -> &[ItemConditionProperty]

Get https://schema.org/itemCondition from Self as borrowed slice.

source

fn take_item_condition(&mut self) -> Vec<ItemConditionProperty>

Take https://schema.org/itemCondition from Self as owned vector.

source

fn get_keywords(&self) -> &[KeywordsProperty]

Get https://schema.org/keywords from Self as borrowed slice.

source

fn take_keywords(&mut self) -> Vec<KeywordsProperty>

Take https://schema.org/keywords from Self as owned vector.

Get https://schema.org/logo from Self as borrowed slice.

Take https://schema.org/logo from Self as owned vector.

source

fn get_manufacturer(&self) -> &[ManufacturerProperty]

Get https://schema.org/manufacturer from Self as borrowed slice.

source

fn take_manufacturer(&mut self) -> Vec<ManufacturerProperty>

Take https://schema.org/manufacturer from Self as owned vector.

source

fn get_material(&self) -> &[MaterialProperty]

Get https://schema.org/material from Self as borrowed slice.

source

fn take_material(&mut self) -> Vec<MaterialProperty>

Take https://schema.org/material from Self as owned vector.

source

fn get_mobile_url(&self) -> &[MobileUrlProperty]

Get https://schema.org/mobileUrl from Self as borrowed slice.

source

fn take_mobile_url(&mut self) -> Vec<MobileUrlProperty>

Take https://schema.org/mobileUrl from Self as owned vector.

source

fn get_model(&self) -> &[ModelProperty]

Get https://schema.org/model from Self as borrowed slice.

source

fn take_model(&mut self) -> Vec<ModelProperty>

Take https://schema.org/model from Self as owned vector.

source

fn get_mpn(&self) -> &[MpnProperty]

Get https://schema.org/mpn from Self as borrowed slice.

source

fn take_mpn(&mut self) -> Vec<MpnProperty>

Take https://schema.org/mpn from Self as owned vector.

source

fn get_negative_notes(&self) -> &[NegativeNotesProperty]

Get https://schema.org/negativeNotes from Self as borrowed slice.

source

fn take_negative_notes(&mut self) -> Vec<NegativeNotesProperty>

Take https://schema.org/negativeNotes from Self as owned vector.

source

fn get_nsn(&self) -> &[NsnProperty]

Get https://schema.org/nsn from Self as borrowed slice.

source

fn take_nsn(&mut self) -> Vec<NsnProperty>

Take https://schema.org/nsn from Self as owned vector.

source

fn get_offers(&self) -> &[OffersProperty]

Get https://schema.org/offers from Self as borrowed slice.

source

fn take_offers(&mut self) -> Vec<OffersProperty>

Take https://schema.org/offers from Self as owned vector.

source

fn get_pattern(&self) -> &[PatternProperty]

Get https://schema.org/pattern from Self as borrowed slice.

source

fn take_pattern(&mut self) -> Vec<PatternProperty>

Take https://schema.org/pattern from Self as owned vector.

source

fn get_positive_notes(&self) -> &[PositiveNotesProperty]

Get https://schema.org/positiveNotes from Self as borrowed slice.

source

fn take_positive_notes(&mut self) -> Vec<PositiveNotesProperty>

Take https://schema.org/positiveNotes from Self as owned vector.

source

fn get_product_id(&self) -> &[ProductIdProperty]

Get https://schema.org/productID from Self as borrowed slice.

source

fn take_product_id(&mut self) -> Vec<ProductIdProperty>

Take https://schema.org/productID from Self as owned vector.

source

fn get_production_date(&self) -> &[ProductionDateProperty]

Get https://schema.org/productionDate from Self as borrowed slice.

source

fn take_production_date(&mut self) -> Vec<ProductionDateProperty>

Take https://schema.org/productionDate from Self as owned vector.

source

fn get_purchase_date(&self) -> &[PurchaseDateProperty]

Get https://schema.org/purchaseDate from Self as borrowed slice.

source

fn take_purchase_date(&mut self) -> Vec<PurchaseDateProperty>

Take https://schema.org/purchaseDate from Self as owned vector.

source

fn get_release_date(&self) -> &[ReleaseDateProperty]

Get https://schema.org/releaseDate from Self as borrowed slice.

source

fn take_release_date(&mut self) -> Vec<ReleaseDateProperty>

Take https://schema.org/releaseDate from Self as owned vector.

source

fn get_review(&self) -> &[ReviewProperty]

Get https://schema.org/review from Self as borrowed slice.

source

fn take_review(&mut self) -> Vec<ReviewProperty>

Take https://schema.org/review from Self as owned vector.

source

fn get_reviews(&self) -> &[ReviewsProperty]

👎Deprecated: This schema is superseded by https://schema.org/review.

Get https://schema.org/reviews from Self as borrowed slice.

source

fn take_reviews(&mut self) -> Vec<ReviewsProperty>

👎Deprecated: This schema is superseded by https://schema.org/review.

Take https://schema.org/reviews from Self as owned vector.

source

fn get_size(&self) -> &[SizeProperty]

Get https://schema.org/size from Self as borrowed slice.

source

fn take_size(&mut self) -> Vec<SizeProperty>

Take https://schema.org/size from Self as owned vector.

source

fn get_sku(&self) -> &[SkuProperty]

Get https://schema.org/sku from Self as borrowed slice.

source

fn take_sku(&mut self) -> Vec<SkuProperty>

Take https://schema.org/sku from Self as owned vector.

source

fn get_slogan(&self) -> &[SloganProperty]

Get https://schema.org/slogan from Self as borrowed slice.

source

fn take_slogan(&mut self) -> Vec<SloganProperty>

Take https://schema.org/slogan from Self as owned vector.

source

fn get_weight(&self) -> &[WeightProperty]

Get https://schema.org/weight from Self as borrowed slice.

source

fn take_weight(&mut self) -> Vec<WeightProperty>

Take https://schema.org/weight from Self as owned vector.

source

fn get_width(&self) -> &[WidthProperty]

Get https://schema.org/width from Self as borrowed slice.

source

fn take_width(&mut self) -> Vec<WidthProperty>

Take https://schema.org/width from Self as owned vector.

Implementors§