Trait schema_org_types::DemandTrait
source · pub trait DemandTrait {
Show 68 methods
// Required methods
fn get_accepted_payment_method(&self) -> &[AcceptedPaymentMethodProperty];
fn take_accepted_payment_method(
&mut self
) -> Vec<AcceptedPaymentMethodProperty>;
fn get_advance_booking_requirement(
&self
) -> &[AdvanceBookingRequirementProperty];
fn take_advance_booking_requirement(
&mut self
) -> Vec<AdvanceBookingRequirementProperty>;
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_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_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_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_mpn(&self) -> &[MpnProperty];
fn take_mpn(&mut self) -> Vec<MpnProperty>;
fn get_price_specification(&self) -> &[PriceSpecificationProperty];
fn take_price_specification(&mut self) -> Vec<PriceSpecificationProperty>;
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_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/Demand.
Required Methods§
sourcefn get_accepted_payment_method(&self) -> &[AcceptedPaymentMethodProperty]
fn get_accepted_payment_method(&self) -> &[AcceptedPaymentMethodProperty]
Get https://schema.org/acceptedPaymentMethod from Self
as borrowed slice.
sourcefn take_accepted_payment_method(&mut self) -> Vec<AcceptedPaymentMethodProperty>
fn take_accepted_payment_method(&mut self) -> Vec<AcceptedPaymentMethodProperty>
Take https://schema.org/acceptedPaymentMethod from Self
as owned vector.
sourcefn get_advance_booking_requirement(
&self
) -> &[AdvanceBookingRequirementProperty]
fn get_advance_booking_requirement( &self ) -> &[AdvanceBookingRequirementProperty]
Get https://schema.org/advanceBookingRequirement from Self
as borrowed slice.
sourcefn take_advance_booking_requirement(
&mut self
) -> Vec<AdvanceBookingRequirementProperty>
fn take_advance_booking_requirement( &mut self ) -> Vec<AdvanceBookingRequirementProperty>
Take https://schema.org/advanceBookingRequirement from Self
as owned vector.
sourcefn get_area_served(&self) -> &[AreaServedProperty]
fn get_area_served(&self) -> &[AreaServedProperty]
Get https://schema.org/areaServed from Self
as borrowed slice.
sourcefn take_area_served(&mut self) -> Vec<AreaServedProperty>
fn take_area_served(&mut self) -> Vec<AreaServedProperty>
Take https://schema.org/areaServed from Self
as owned vector.
sourcefn get_asin(&self) -> &[AsinProperty]
fn get_asin(&self) -> &[AsinProperty]
Get https://schema.org/asin from Self
as borrowed slice.
sourcefn take_asin(&mut self) -> Vec<AsinProperty>
fn take_asin(&mut self) -> Vec<AsinProperty>
Take https://schema.org/asin from Self
as owned vector.
sourcefn get_availability(&self) -> &[AvailabilityProperty]
fn get_availability(&self) -> &[AvailabilityProperty]
Get https://schema.org/availability from Self
as borrowed slice.
sourcefn take_availability(&mut self) -> Vec<AvailabilityProperty>
fn take_availability(&mut self) -> Vec<AvailabilityProperty>
Take https://schema.org/availability from Self
as owned vector.
sourcefn get_availability_ends(&self) -> &[AvailabilityEndsProperty]
fn get_availability_ends(&self) -> &[AvailabilityEndsProperty]
Get https://schema.org/availabilityEnds from Self
as borrowed slice.
sourcefn take_availability_ends(&mut self) -> Vec<AvailabilityEndsProperty>
fn take_availability_ends(&mut self) -> Vec<AvailabilityEndsProperty>
Take https://schema.org/availabilityEnds from Self
as owned vector.
sourcefn get_availability_starts(&self) -> &[AvailabilityStartsProperty]
fn get_availability_starts(&self) -> &[AvailabilityStartsProperty]
Get https://schema.org/availabilityStarts from Self
as borrowed slice.
sourcefn take_availability_starts(&mut self) -> Vec<AvailabilityStartsProperty>
fn take_availability_starts(&mut self) -> Vec<AvailabilityStartsProperty>
Take https://schema.org/availabilityStarts from Self
as owned vector.
sourcefn get_available_at_or_from(&self) -> &[AvailableAtOrFromProperty]
fn get_available_at_or_from(&self) -> &[AvailableAtOrFromProperty]
Get https://schema.org/availableAtOrFrom from Self
as borrowed slice.
sourcefn take_available_at_or_from(&mut self) -> Vec<AvailableAtOrFromProperty>
fn take_available_at_or_from(&mut self) -> Vec<AvailableAtOrFromProperty>
Take https://schema.org/availableAtOrFrom from Self
as owned vector.
sourcefn get_available_delivery_method(&self) -> &[AvailableDeliveryMethodProperty]
fn get_available_delivery_method(&self) -> &[AvailableDeliveryMethodProperty]
Get https://schema.org/availableDeliveryMethod from Self
as borrowed slice.
sourcefn take_available_delivery_method(
&mut self
) -> Vec<AvailableDeliveryMethodProperty>
fn take_available_delivery_method( &mut self ) -> Vec<AvailableDeliveryMethodProperty>
Take https://schema.org/availableDeliveryMethod from Self
as owned vector.
sourcefn get_business_function(&self) -> &[BusinessFunctionProperty]
fn get_business_function(&self) -> &[BusinessFunctionProperty]
Get https://schema.org/businessFunction from Self
as borrowed slice.
sourcefn take_business_function(&mut self) -> Vec<BusinessFunctionProperty>
fn take_business_function(&mut self) -> Vec<BusinessFunctionProperty>
Take https://schema.org/businessFunction from Self
as owned vector.
sourcefn get_delivery_lead_time(&self) -> &[DeliveryLeadTimeProperty]
fn get_delivery_lead_time(&self) -> &[DeliveryLeadTimeProperty]
Get https://schema.org/deliveryLeadTime from Self
as borrowed slice.
sourcefn take_delivery_lead_time(&mut self) -> Vec<DeliveryLeadTimeProperty>
fn take_delivery_lead_time(&mut self) -> Vec<DeliveryLeadTimeProperty>
Take https://schema.org/deliveryLeadTime from Self
as owned vector.
sourcefn get_eligible_customer_type(&self) -> &[EligibleCustomerTypeProperty]
fn get_eligible_customer_type(&self) -> &[EligibleCustomerTypeProperty]
Get https://schema.org/eligibleCustomerType from Self
as borrowed slice.
sourcefn take_eligible_customer_type(&mut self) -> Vec<EligibleCustomerTypeProperty>
fn take_eligible_customer_type(&mut self) -> Vec<EligibleCustomerTypeProperty>
Take https://schema.org/eligibleCustomerType from Self
as owned vector.
sourcefn get_eligible_duration(&self) -> &[EligibleDurationProperty]
fn get_eligible_duration(&self) -> &[EligibleDurationProperty]
Get https://schema.org/eligibleDuration from Self
as borrowed slice.
sourcefn take_eligible_duration(&mut self) -> Vec<EligibleDurationProperty>
fn take_eligible_duration(&mut self) -> Vec<EligibleDurationProperty>
Take https://schema.org/eligibleDuration from Self
as owned vector.
sourcefn get_eligible_quantity(&self) -> &[EligibleQuantityProperty]
fn get_eligible_quantity(&self) -> &[EligibleQuantityProperty]
Get https://schema.org/eligibleQuantity from Self
as borrowed slice.
sourcefn take_eligible_quantity(&mut self) -> Vec<EligibleQuantityProperty>
fn take_eligible_quantity(&mut self) -> Vec<EligibleQuantityProperty>
Take https://schema.org/eligibleQuantity from Self
as owned vector.
sourcefn get_eligible_region(&self) -> &[EligibleRegionProperty]
fn get_eligible_region(&self) -> &[EligibleRegionProperty]
Get https://schema.org/eligibleRegion from Self
as borrowed slice.
sourcefn take_eligible_region(&mut self) -> Vec<EligibleRegionProperty>
fn take_eligible_region(&mut self) -> Vec<EligibleRegionProperty>
Take https://schema.org/eligibleRegion from Self
as owned vector.
sourcefn get_eligible_transaction_volume(
&self
) -> &[EligibleTransactionVolumeProperty]
fn get_eligible_transaction_volume( &self ) -> &[EligibleTransactionVolumeProperty]
Get https://schema.org/eligibleTransactionVolume from Self
as borrowed slice.
sourcefn take_eligible_transaction_volume(
&mut self
) -> Vec<EligibleTransactionVolumeProperty>
fn take_eligible_transaction_volume( &mut self ) -> Vec<EligibleTransactionVolumeProperty>
Take https://schema.org/eligibleTransactionVolume from Self
as owned vector.
sourcefn get_gtin(&self) -> &[GtinProperty]
fn get_gtin(&self) -> &[GtinProperty]
Get https://schema.org/gtin from Self
as borrowed slice.
sourcefn take_gtin(&mut self) -> Vec<GtinProperty>
fn take_gtin(&mut self) -> Vec<GtinProperty>
Take https://schema.org/gtin from Self
as owned vector.
sourcefn get_gtin_12(&self) -> &[Gtin12Property]
fn get_gtin_12(&self) -> &[Gtin12Property]
Get https://schema.org/gtin12 from Self
as borrowed slice.
sourcefn take_gtin_12(&mut self) -> Vec<Gtin12Property>
fn take_gtin_12(&mut self) -> Vec<Gtin12Property>
Take https://schema.org/gtin12 from Self
as owned vector.
sourcefn get_gtin_13(&self) -> &[Gtin13Property]
fn get_gtin_13(&self) -> &[Gtin13Property]
Get https://schema.org/gtin13 from Self
as borrowed slice.
sourcefn take_gtin_13(&mut self) -> Vec<Gtin13Property>
fn take_gtin_13(&mut self) -> Vec<Gtin13Property>
Take https://schema.org/gtin13 from Self
as owned vector.
sourcefn get_gtin_14(&self) -> &[Gtin14Property]
fn get_gtin_14(&self) -> &[Gtin14Property]
Get https://schema.org/gtin14 from Self
as borrowed slice.
sourcefn take_gtin_14(&mut self) -> Vec<Gtin14Property>
fn take_gtin_14(&mut self) -> Vec<Gtin14Property>
Take https://schema.org/gtin14 from Self
as owned vector.
sourcefn get_gtin_8(&self) -> &[Gtin8Property]
fn get_gtin_8(&self) -> &[Gtin8Property]
Get https://schema.org/gtin8 from Self
as borrowed slice.
sourcefn take_gtin_8(&mut self) -> Vec<Gtin8Property>
fn take_gtin_8(&mut self) -> Vec<Gtin8Property>
Take https://schema.org/gtin8 from Self
as owned vector.
sourcefn get_includes_object(&self) -> &[IncludesObjectProperty]
fn get_includes_object(&self) -> &[IncludesObjectProperty]
Get https://schema.org/includesObject from Self
as borrowed slice.
sourcefn take_includes_object(&mut self) -> Vec<IncludesObjectProperty>
fn take_includes_object(&mut self) -> Vec<IncludesObjectProperty>
Take https://schema.org/includesObject from Self
as owned vector.
sourcefn get_ineligible_region(&self) -> &[IneligibleRegionProperty]
fn get_ineligible_region(&self) -> &[IneligibleRegionProperty]
Get https://schema.org/ineligibleRegion from Self
as borrowed slice.
sourcefn take_ineligible_region(&mut self) -> Vec<IneligibleRegionProperty>
fn take_ineligible_region(&mut self) -> Vec<IneligibleRegionProperty>
Take https://schema.org/ineligibleRegion from Self
as owned vector.
sourcefn get_inventory_level(&self) -> &[InventoryLevelProperty]
fn get_inventory_level(&self) -> &[InventoryLevelProperty]
Get https://schema.org/inventoryLevel from Self
as borrowed slice.
sourcefn take_inventory_level(&mut self) -> Vec<InventoryLevelProperty>
fn take_inventory_level(&mut self) -> Vec<InventoryLevelProperty>
Take https://schema.org/inventoryLevel from Self
as owned vector.
sourcefn get_item_condition(&self) -> &[ItemConditionProperty]
fn get_item_condition(&self) -> &[ItemConditionProperty]
Get https://schema.org/itemCondition from Self
as borrowed slice.
sourcefn take_item_condition(&mut self) -> Vec<ItemConditionProperty>
fn take_item_condition(&mut self) -> Vec<ItemConditionProperty>
Take https://schema.org/itemCondition from Self
as owned vector.
sourcefn get_item_offered(&self) -> &[ItemOfferedProperty]
fn get_item_offered(&self) -> &[ItemOfferedProperty]
Get https://schema.org/itemOffered from Self
as borrowed slice.
sourcefn take_item_offered(&mut self) -> Vec<ItemOfferedProperty>
fn take_item_offered(&mut self) -> Vec<ItemOfferedProperty>
Take https://schema.org/itemOffered from Self
as owned vector.
sourcefn get_mpn(&self) -> &[MpnProperty]
fn get_mpn(&self) -> &[MpnProperty]
Get https://schema.org/mpn from Self
as borrowed slice.
sourcefn take_mpn(&mut self) -> Vec<MpnProperty>
fn take_mpn(&mut self) -> Vec<MpnProperty>
Take https://schema.org/mpn from Self
as owned vector.
sourcefn get_price_specification(&self) -> &[PriceSpecificationProperty]
fn get_price_specification(&self) -> &[PriceSpecificationProperty]
Get https://schema.org/priceSpecification from Self
as borrowed slice.
sourcefn take_price_specification(&mut self) -> Vec<PriceSpecificationProperty>
fn take_price_specification(&mut self) -> Vec<PriceSpecificationProperty>
Take https://schema.org/priceSpecification from Self
as owned vector.
sourcefn get_seller(&self) -> &[SellerProperty]
fn get_seller(&self) -> &[SellerProperty]
Get https://schema.org/seller from Self
as borrowed slice.
sourcefn take_seller(&mut self) -> Vec<SellerProperty>
fn take_seller(&mut self) -> Vec<SellerProperty>
Take https://schema.org/seller from Self
as owned vector.
sourcefn get_serial_number(&self) -> &[SerialNumberProperty]
fn get_serial_number(&self) -> &[SerialNumberProperty]
Get https://schema.org/serialNumber from Self
as borrowed slice.
sourcefn take_serial_number(&mut self) -> Vec<SerialNumberProperty>
fn take_serial_number(&mut self) -> Vec<SerialNumberProperty>
Take https://schema.org/serialNumber from Self
as owned vector.
sourcefn get_sku(&self) -> &[SkuProperty]
fn get_sku(&self) -> &[SkuProperty]
Get https://schema.org/sku from Self
as borrowed slice.
sourcefn take_sku(&mut self) -> Vec<SkuProperty>
fn take_sku(&mut self) -> Vec<SkuProperty>
Take https://schema.org/sku from Self
as owned vector.
sourcefn get_valid_from(&self) -> &[ValidFromProperty]
fn get_valid_from(&self) -> &[ValidFromProperty]
Get https://schema.org/validFrom from Self
as borrowed slice.
sourcefn take_valid_from(&mut self) -> Vec<ValidFromProperty>
fn take_valid_from(&mut self) -> Vec<ValidFromProperty>
Take https://schema.org/validFrom from Self
as owned vector.
sourcefn get_valid_through(&self) -> &[ValidThroughProperty]
fn get_valid_through(&self) -> &[ValidThroughProperty]
Get https://schema.org/validThrough from Self
as borrowed slice.
sourcefn take_valid_through(&mut self) -> Vec<ValidThroughProperty>
fn take_valid_through(&mut self) -> Vec<ValidThroughProperty>
Take https://schema.org/validThrough from Self
as owned vector.
sourcefn get_warranty(&self) -> &[WarrantyProperty]
fn get_warranty(&self) -> &[WarrantyProperty]
Get https://schema.org/warranty from Self
as borrowed slice.
sourcefn take_warranty(&mut self) -> Vec<WarrantyProperty>
fn take_warranty(&mut self) -> Vec<WarrantyProperty>
Take https://schema.org/warranty from Self
as owned vector.