pub trait OfferTrait {
Show 102 methods // Required methods fn get_accepted_payment_method(&self) -> &[AcceptedPaymentMethodProperty]; fn take_accepted_payment_method( &mut self ) -> Vec<AcceptedPaymentMethodProperty>; fn get_add_on(&self) -> &[AddOnProperty]; fn take_add_on(&mut self) -> Vec<AddOnProperty>; fn get_advance_booking_requirement( &self ) -> &[AdvanceBookingRequirementProperty]; fn take_advance_booking_requirement( &mut self ) -> Vec<AdvanceBookingRequirementProperty>; fn get_aggregate_rating(&self) -> &[AggregateRatingProperty]; fn take_aggregate_rating(&mut self) -> Vec<AggregateRatingProperty>; fn get_area_served(&self) -> &[AreaServedProperty]; fn take_area_served(&mut self) -> Vec<AreaServedProperty>; fn get_asin(&self) -> &[AsinProperty]; fn take_asin(&mut self) -> Vec<AsinProperty>; fn get_availability(&self) -> &[AvailabilityProperty]; fn take_availability(&mut self) -> Vec<AvailabilityProperty>; fn get_availability_ends(&self) -> &[AvailabilityEndsProperty]; fn take_availability_ends(&mut self) -> Vec<AvailabilityEndsProperty>; fn get_availability_starts(&self) -> &[AvailabilityStartsProperty]; fn take_availability_starts(&mut self) -> Vec<AvailabilityStartsProperty>; fn get_available_at_or_from(&self) -> &[AvailableAtOrFromProperty]; fn take_available_at_or_from(&mut self) -> Vec<AvailableAtOrFromProperty>; fn get_available_delivery_method( &self ) -> &[AvailableDeliveryMethodProperty]; fn take_available_delivery_method( &mut self ) -> Vec<AvailableDeliveryMethodProperty>; fn get_business_function(&self) -> &[BusinessFunctionProperty]; fn take_business_function(&mut self) -> Vec<BusinessFunctionProperty>; fn get_category(&self) -> &[CategoryProperty]; fn take_category(&mut self) -> Vec<CategoryProperty>; fn get_checkout_page_url_template( &self ) -> &[CheckoutPageUrlTemplateProperty]; fn take_checkout_page_url_template( &mut self ) -> Vec<CheckoutPageUrlTemplateProperty>; fn get_delivery_lead_time(&self) -> &[DeliveryLeadTimeProperty]; fn take_delivery_lead_time(&mut self) -> Vec<DeliveryLeadTimeProperty>; fn get_eligible_customer_type(&self) -> &[EligibleCustomerTypeProperty]; fn take_eligible_customer_type( &mut self ) -> Vec<EligibleCustomerTypeProperty>; fn get_eligible_duration(&self) -> &[EligibleDurationProperty]; fn take_eligible_duration(&mut self) -> Vec<EligibleDurationProperty>; fn get_eligible_quantity(&self) -> &[EligibleQuantityProperty]; fn take_eligible_quantity(&mut self) -> Vec<EligibleQuantityProperty>; fn get_eligible_region(&self) -> &[EligibleRegionProperty]; fn take_eligible_region(&mut self) -> Vec<EligibleRegionProperty>; fn get_eligible_transaction_volume( &self ) -> &[EligibleTransactionVolumeProperty]; fn take_eligible_transaction_volume( &mut self ) -> Vec<EligibleTransactionVolumeProperty>; 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_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_includes_object(&self) -> &[IncludesObjectProperty]; fn take_includes_object(&mut self) -> Vec<IncludesObjectProperty>; fn get_ineligible_region(&self) -> &[IneligibleRegionProperty]; fn take_ineligible_region(&mut self) -> Vec<IneligibleRegionProperty>; fn get_inventory_level(&self) -> &[InventoryLevelProperty]; fn take_inventory_level(&mut self) -> Vec<InventoryLevelProperty>; fn get_is_family_friendly(&self) -> &[IsFamilyFriendlyProperty]; fn take_is_family_friendly(&mut self) -> Vec<IsFamilyFriendlyProperty>; fn get_item_condition(&self) -> &[ItemConditionProperty]; fn take_item_condition(&mut self) -> Vec<ItemConditionProperty>; fn get_item_offered(&self) -> &[ItemOfferedProperty]; fn take_item_offered(&mut self) -> Vec<ItemOfferedProperty>; fn get_lease_length(&self) -> &[LeaseLengthProperty]; fn take_lease_length(&mut self) -> Vec<LeaseLengthProperty>; fn get_mobile_url(&self) -> &[MobileUrlProperty]; fn take_mobile_url(&mut self) -> Vec<MobileUrlProperty>; fn get_mpn(&self) -> &[MpnProperty]; fn take_mpn(&mut self) -> Vec<MpnProperty>; fn get_offered_by(&self) -> &[OfferedByProperty]; fn take_offered_by(&mut self) -> Vec<OfferedByProperty>; fn get_price(&self) -> &[PriceProperty]; fn take_price(&mut self) -> Vec<PriceProperty>; fn get_price_currency(&self) -> &[PriceCurrencyProperty]; fn take_price_currency(&mut self) -> Vec<PriceCurrencyProperty>; fn get_price_specification(&self) -> &[PriceSpecificationProperty]; fn take_price_specification(&mut self) -> Vec<PriceSpecificationProperty>; fn get_price_valid_until(&self) -> &[PriceValidUntilProperty]; fn take_price_valid_until(&mut self) -> Vec<PriceValidUntilProperty>; 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_seller(&self) -> &[SellerProperty]; fn take_seller(&mut self) -> Vec<SellerProperty>; fn get_serial_number(&self) -> &[SerialNumberProperty]; fn take_serial_number(&mut self) -> Vec<SerialNumberProperty>; fn get_shipping_details(&self) -> &[ShippingDetailsProperty]; fn take_shipping_details(&mut self) -> Vec<ShippingDetailsProperty>; fn get_sku(&self) -> &[SkuProperty]; fn take_sku(&mut self) -> Vec<SkuProperty>; fn get_valid_from(&self) -> &[ValidFromProperty]; fn take_valid_from(&mut self) -> Vec<ValidFromProperty>; fn get_valid_through(&self) -> &[ValidThroughProperty]; fn take_valid_through(&mut self) -> Vec<ValidThroughProperty>; fn get_warranty(&self) -> &[WarrantyProperty]; fn take_warranty(&mut self) -> Vec<WarrantyProperty>;
}
Expand description

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

Required Methods§

source

fn get_accepted_payment_method(&self) -> &[AcceptedPaymentMethodProperty]

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

source

fn take_accepted_payment_method(&mut self) -> Vec<AcceptedPaymentMethodProperty>

source

fn get_add_on(&self) -> &[AddOnProperty]

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

source

fn take_add_on(&mut self) -> Vec<AddOnProperty>

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

source

fn get_advance_booking_requirement( &self ) -> &[AdvanceBookingRequirementProperty]

source

fn take_advance_booking_requirement( &mut self ) -> Vec<AdvanceBookingRequirementProperty>

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_area_served(&self) -> &[AreaServedProperty]

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

source

fn take_area_served(&mut self) -> Vec<AreaServedProperty>

Take https://schema.org/areaServed 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_availability(&self) -> &[AvailabilityProperty]

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

source

fn take_availability(&mut self) -> Vec<AvailabilityProperty>

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

source

fn get_availability_ends(&self) -> &[AvailabilityEndsProperty]

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

source

fn take_availability_ends(&mut self) -> Vec<AvailabilityEndsProperty>

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

source

fn get_availability_starts(&self) -> &[AvailabilityStartsProperty]

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

source

fn take_availability_starts(&mut self) -> Vec<AvailabilityStartsProperty>

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

source

fn get_available_at_or_from(&self) -> &[AvailableAtOrFromProperty]

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

source

fn take_available_at_or_from(&mut self) -> Vec<AvailableAtOrFromProperty>

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

source

fn get_available_delivery_method(&self) -> &[AvailableDeliveryMethodProperty]

source

fn take_available_delivery_method( &mut self ) -> Vec<AvailableDeliveryMethodProperty>

source

fn get_business_function(&self) -> &[BusinessFunctionProperty]

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

source

fn take_business_function(&mut self) -> Vec<BusinessFunctionProperty>

Take https://schema.org/businessFunction 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_checkout_page_url_template(&self) -> &[CheckoutPageUrlTemplateProperty]

source

fn take_checkout_page_url_template( &mut self ) -> Vec<CheckoutPageUrlTemplateProperty>

source

fn get_delivery_lead_time(&self) -> &[DeliveryLeadTimeProperty]

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

source

fn take_delivery_lead_time(&mut self) -> Vec<DeliveryLeadTimeProperty>

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

source

fn get_eligible_customer_type(&self) -> &[EligibleCustomerTypeProperty]

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

source

fn take_eligible_customer_type(&mut self) -> Vec<EligibleCustomerTypeProperty>

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

source

fn get_eligible_duration(&self) -> &[EligibleDurationProperty]

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

source

fn take_eligible_duration(&mut self) -> Vec<EligibleDurationProperty>

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

source

fn get_eligible_quantity(&self) -> &[EligibleQuantityProperty]

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

source

fn take_eligible_quantity(&mut self) -> Vec<EligibleQuantityProperty>

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

source

fn get_eligible_region(&self) -> &[EligibleRegionProperty]

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

source

fn take_eligible_region(&mut self) -> Vec<EligibleRegionProperty>

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

source

fn get_eligible_transaction_volume( &self ) -> &[EligibleTransactionVolumeProperty]

source

fn take_eligible_transaction_volume( &mut self ) -> Vec<EligibleTransactionVolumeProperty>

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_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_includes_object(&self) -> &[IncludesObjectProperty]

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

source

fn take_includes_object(&mut self) -> Vec<IncludesObjectProperty>

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

source

fn get_ineligible_region(&self) -> &[IneligibleRegionProperty]

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

source

fn take_ineligible_region(&mut self) -> Vec<IneligibleRegionProperty>

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

source

fn get_inventory_level(&self) -> &[InventoryLevelProperty]

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

source

fn take_inventory_level(&mut self) -> Vec<InventoryLevelProperty>

Take https://schema.org/inventoryLevel 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.

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_item_offered(&self) -> &[ItemOfferedProperty]

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

source

fn take_item_offered(&mut self) -> Vec<ItemOfferedProperty>

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

source

fn get_lease_length(&self) -> &[LeaseLengthProperty]

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

source

fn take_lease_length(&mut self) -> Vec<LeaseLengthProperty>

Take https://schema.org/leaseLength 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_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_offered_by(&self) -> &[OfferedByProperty]

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

source

fn take_offered_by(&mut self) -> Vec<OfferedByProperty>

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

source

fn get_price(&self) -> &[PriceProperty]

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

source

fn take_price(&mut self) -> Vec<PriceProperty>

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

source

fn get_price_currency(&self) -> &[PriceCurrencyProperty]

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

source

fn take_price_currency(&mut self) -> Vec<PriceCurrencyProperty>

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

source

fn get_price_specification(&self) -> &[PriceSpecificationProperty]

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

source

fn take_price_specification(&mut self) -> Vec<PriceSpecificationProperty>

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

source

fn get_price_valid_until(&self) -> &[PriceValidUntilProperty]

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

source

fn take_price_valid_until(&mut self) -> Vec<PriceValidUntilProperty>

Take https://schema.org/priceValidUntil 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_seller(&self) -> &[SellerProperty]

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

source

fn take_seller(&mut self) -> Vec<SellerProperty>

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

source

fn get_serial_number(&self) -> &[SerialNumberProperty]

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

source

fn take_serial_number(&mut self) -> Vec<SerialNumberProperty>

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

source

fn get_shipping_details(&self) -> &[ShippingDetailsProperty]

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

source

fn take_shipping_details(&mut self) -> Vec<ShippingDetailsProperty>

Take https://schema.org/shippingDetails 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_valid_from(&self) -> &[ValidFromProperty]

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

source

fn take_valid_from(&mut self) -> Vec<ValidFromProperty>

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

source

fn get_valid_through(&self) -> &[ValidThroughProperty]

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

source

fn take_valid_through(&mut self) -> Vec<ValidThroughProperty>

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

source

fn get_warranty(&self) -> &[WarrantyProperty]

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

source

fn take_warranty(&mut self) -> Vec<WarrantyProperty>

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

Implementors§