Trait schema_org_types::ServiceTrait
source · pub trait ServiceTrait {
Show 48 methods
// Required methods
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_audience(&self) -> &[AudienceProperty];
fn take_audience(&mut self) -> Vec<AudienceProperty>;
fn get_available_channel(&self) -> &[AvailableChannelProperty];
fn take_available_channel(&mut self) -> Vec<AvailableChannelProperty>;
fn get_award(&self) -> &[AwardProperty];
fn take_award(&mut self) -> Vec<AwardProperty>;
fn get_brand(&self) -> &[BrandProperty];
fn take_brand(&mut self) -> Vec<BrandProperty>;
fn get_broker(&self) -> &[BrokerProperty];
fn take_broker(&mut self) -> Vec<BrokerProperty>;
fn get_category(&self) -> &[CategoryProperty];
fn take_category(&mut self) -> Vec<CategoryProperty>;
fn get_has_offer_catalog(&self) -> &[HasOfferCatalogProperty];
fn take_has_offer_catalog(&mut self) -> Vec<HasOfferCatalogProperty>;
fn get_hours_available(&self) -> &[HoursAvailableProperty];
fn take_hours_available(&mut self) -> Vec<HoursAvailableProperty>;
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_logo(&self) -> &[LogoProperty];
fn take_logo(&mut self) -> Vec<LogoProperty>;
fn get_offers(&self) -> &[OffersProperty];
fn take_offers(&mut self) -> Vec<OffersProperty>;
fn get_produces(&self) -> &[ProducesProperty];
fn take_produces(&mut self) -> Vec<ProducesProperty>;
fn get_provider(&self) -> &[ProviderProperty];
fn take_provider(&mut self) -> Vec<ProviderProperty>;
fn get_provider_mobility(&self) -> &[ProviderMobilityProperty];
fn take_provider_mobility(&mut self) -> Vec<ProviderMobilityProperty>;
fn get_review(&self) -> &[ReviewProperty];
fn take_review(&mut self) -> Vec<ReviewProperty>;
fn get_service_area(&self) -> &[ServiceAreaProperty];
fn take_service_area(&mut self) -> Vec<ServiceAreaProperty>;
fn get_service_audience(&self) -> &[ServiceAudienceProperty];
fn take_service_audience(&mut self) -> Vec<ServiceAudienceProperty>;
fn get_service_output(&self) -> &[ServiceOutputProperty];
fn take_service_output(&mut self) -> Vec<ServiceOutputProperty>;
fn get_service_type(&self) -> &[ServiceTypeProperty];
fn take_service_type(&mut self) -> Vec<ServiceTypeProperty>;
fn get_slogan(&self) -> &[SloganProperty];
fn take_slogan(&mut self) -> Vec<SloganProperty>;
fn get_terms_of_service(&self) -> &[TermsOfServiceProperty];
fn take_terms_of_service(&mut self) -> Vec<TermsOfServiceProperty>;
}
Expand description
This trait is for properties from https://schema.org/Service.
Required Methods§
sourcefn get_aggregate_rating(&self) -> &[AggregateRatingProperty]
fn get_aggregate_rating(&self) -> &[AggregateRatingProperty]
Get https://schema.org/aggregateRating from Self
as borrowed slice.
sourcefn take_aggregate_rating(&mut self) -> Vec<AggregateRatingProperty>
fn take_aggregate_rating(&mut self) -> Vec<AggregateRatingProperty>
Take https://schema.org/aggregateRating 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_audience(&self) -> &[AudienceProperty]
fn get_audience(&self) -> &[AudienceProperty]
Get https://schema.org/audience from Self
as borrowed slice.
sourcefn take_audience(&mut self) -> Vec<AudienceProperty>
fn take_audience(&mut self) -> Vec<AudienceProperty>
Take https://schema.org/audience from Self
as owned vector.
sourcefn get_available_channel(&self) -> &[AvailableChannelProperty]
fn get_available_channel(&self) -> &[AvailableChannelProperty]
Get https://schema.org/availableChannel from Self
as borrowed slice.
sourcefn take_available_channel(&mut self) -> Vec<AvailableChannelProperty>
fn take_available_channel(&mut self) -> Vec<AvailableChannelProperty>
Take https://schema.org/availableChannel from Self
as owned vector.
sourcefn get_award(&self) -> &[AwardProperty]
fn get_award(&self) -> &[AwardProperty]
Get https://schema.org/award from Self
as borrowed slice.
sourcefn take_award(&mut self) -> Vec<AwardProperty>
fn take_award(&mut self) -> Vec<AwardProperty>
Take https://schema.org/award from Self
as owned vector.
sourcefn get_brand(&self) -> &[BrandProperty]
fn get_brand(&self) -> &[BrandProperty]
Get https://schema.org/brand from Self
as borrowed slice.
sourcefn take_brand(&mut self) -> Vec<BrandProperty>
fn take_brand(&mut self) -> Vec<BrandProperty>
Take https://schema.org/brand from Self
as owned vector.
sourcefn get_broker(&self) -> &[BrokerProperty]
fn get_broker(&self) -> &[BrokerProperty]
Get https://schema.org/broker from Self
as borrowed slice.
sourcefn take_broker(&mut self) -> Vec<BrokerProperty>
fn take_broker(&mut self) -> Vec<BrokerProperty>
Take https://schema.org/broker from Self
as owned vector.
sourcefn get_category(&self) -> &[CategoryProperty]
fn get_category(&self) -> &[CategoryProperty]
Get https://schema.org/category from Self
as borrowed slice.
sourcefn take_category(&mut self) -> Vec<CategoryProperty>
fn take_category(&mut self) -> Vec<CategoryProperty>
Take https://schema.org/category from Self
as owned vector.
sourcefn get_has_offer_catalog(&self) -> &[HasOfferCatalogProperty]
fn get_has_offer_catalog(&self) -> &[HasOfferCatalogProperty]
Get https://schema.org/hasOfferCatalog from Self
as borrowed slice.
sourcefn take_has_offer_catalog(&mut self) -> Vec<HasOfferCatalogProperty>
fn take_has_offer_catalog(&mut self) -> Vec<HasOfferCatalogProperty>
Take https://schema.org/hasOfferCatalog from Self
as owned vector.
sourcefn get_hours_available(&self) -> &[HoursAvailableProperty]
fn get_hours_available(&self) -> &[HoursAvailableProperty]
Get https://schema.org/hoursAvailable from Self
as borrowed slice.
sourcefn take_hours_available(&mut self) -> Vec<HoursAvailableProperty>
fn take_hours_available(&mut self) -> Vec<HoursAvailableProperty>
Take https://schema.org/hoursAvailable 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.
sourcefn get_is_similar_to(&self) -> &[IsSimilarToProperty]
fn get_is_similar_to(&self) -> &[IsSimilarToProperty]
Get https://schema.org/isSimilarTo from Self
as borrowed slice.
sourcefn take_is_similar_to(&mut self) -> Vec<IsSimilarToProperty>
fn take_is_similar_to(&mut self) -> Vec<IsSimilarToProperty>
Take https://schema.org/isSimilarTo from Self
as owned vector.
sourcefn get_logo(&self) -> &[LogoProperty]
fn get_logo(&self) -> &[LogoProperty]
Get https://schema.org/logo from Self
as borrowed slice.
sourcefn take_logo(&mut self) -> Vec<LogoProperty>
fn take_logo(&mut self) -> Vec<LogoProperty>
Take https://schema.org/logo from Self
as owned vector.
sourcefn get_offers(&self) -> &[OffersProperty]
fn get_offers(&self) -> &[OffersProperty]
Get https://schema.org/offers from Self
as borrowed slice.
sourcefn take_offers(&mut self) -> Vec<OffersProperty>
fn take_offers(&mut self) -> Vec<OffersProperty>
Take https://schema.org/offers from Self
as owned vector.
sourcefn get_produces(&self) -> &[ProducesProperty]
fn get_produces(&self) -> &[ProducesProperty]
Get https://schema.org/produces from Self
as borrowed slice.
sourcefn take_produces(&mut self) -> Vec<ProducesProperty>
fn take_produces(&mut self) -> Vec<ProducesProperty>
Take https://schema.org/produces from Self
as owned vector.
sourcefn get_provider(&self) -> &[ProviderProperty]
fn get_provider(&self) -> &[ProviderProperty]
Get https://schema.org/provider from Self
as borrowed slice.
sourcefn take_provider(&mut self) -> Vec<ProviderProperty>
fn take_provider(&mut self) -> Vec<ProviderProperty>
Take https://schema.org/provider from Self
as owned vector.
sourcefn get_provider_mobility(&self) -> &[ProviderMobilityProperty]
fn get_provider_mobility(&self) -> &[ProviderMobilityProperty]
Get https://schema.org/providerMobility from Self
as borrowed slice.
sourcefn take_provider_mobility(&mut self) -> Vec<ProviderMobilityProperty>
fn take_provider_mobility(&mut self) -> Vec<ProviderMobilityProperty>
Take https://schema.org/providerMobility from Self
as owned vector.
sourcefn get_review(&self) -> &[ReviewProperty]
fn get_review(&self) -> &[ReviewProperty]
Get https://schema.org/review from Self
as borrowed slice.
sourcefn take_review(&mut self) -> Vec<ReviewProperty>
fn take_review(&mut self) -> Vec<ReviewProperty>
Take https://schema.org/review from Self
as owned vector.
sourcefn get_service_area(&self) -> &[ServiceAreaProperty]
fn get_service_area(&self) -> &[ServiceAreaProperty]
Get https://schema.org/serviceArea from Self
as borrowed slice.
sourcefn take_service_area(&mut self) -> Vec<ServiceAreaProperty>
fn take_service_area(&mut self) -> Vec<ServiceAreaProperty>
Take https://schema.org/serviceArea from Self
as owned vector.
sourcefn get_service_audience(&self) -> &[ServiceAudienceProperty]
fn get_service_audience(&self) -> &[ServiceAudienceProperty]
Get https://schema.org/serviceAudience from Self
as borrowed slice.
sourcefn take_service_audience(&mut self) -> Vec<ServiceAudienceProperty>
fn take_service_audience(&mut self) -> Vec<ServiceAudienceProperty>
Take https://schema.org/serviceAudience from Self
as owned vector.
sourcefn get_service_output(&self) -> &[ServiceOutputProperty]
fn get_service_output(&self) -> &[ServiceOutputProperty]
Get https://schema.org/serviceOutput from Self
as borrowed slice.
sourcefn take_service_output(&mut self) -> Vec<ServiceOutputProperty>
fn take_service_output(&mut self) -> Vec<ServiceOutputProperty>
Take https://schema.org/serviceOutput from Self
as owned vector.
sourcefn get_service_type(&self) -> &[ServiceTypeProperty]
fn get_service_type(&self) -> &[ServiceTypeProperty]
Get https://schema.org/serviceType from Self
as borrowed slice.
sourcefn take_service_type(&mut self) -> Vec<ServiceTypeProperty>
fn take_service_type(&mut self) -> Vec<ServiceTypeProperty>
Take https://schema.org/serviceType from Self
as owned vector.
sourcefn get_slogan(&self) -> &[SloganProperty]
fn get_slogan(&self) -> &[SloganProperty]
Get https://schema.org/slogan from Self
as borrowed slice.
sourcefn take_slogan(&mut self) -> Vec<SloganProperty>
fn take_slogan(&mut self) -> Vec<SloganProperty>
Take https://schema.org/slogan from Self
as owned vector.
sourcefn get_terms_of_service(&self) -> &[TermsOfServiceProperty]
fn get_terms_of_service(&self) -> &[TermsOfServiceProperty]
Get https://schema.org/termsOfService from Self
as borrowed slice.
sourcefn take_terms_of_service(&mut self) -> Vec<TermsOfServiceProperty>
fn take_terms_of_service(&mut self) -> Vec<TermsOfServiceProperty>
Take https://schema.org/termsOfService from Self
as owned vector.