Trait schema_org_types::LocalBusinessTrait
source · pub trait LocalBusinessTrait {
// Required methods
fn get_branch_of(&self) -> &[BranchOfProperty];
fn take_branch_of(&mut self) -> Vec<BranchOfProperty>;
fn get_currencies_accepted(&self) -> &[CurrenciesAcceptedProperty];
fn take_currencies_accepted(&mut self) -> Vec<CurrenciesAcceptedProperty>;
fn get_opening_hours(&self) -> &[OpeningHoursProperty];
fn take_opening_hours(&mut self) -> Vec<OpeningHoursProperty>;
fn get_payment_accepted(&self) -> &[PaymentAcceptedProperty];
fn take_payment_accepted(&mut self) -> Vec<PaymentAcceptedProperty>;
fn get_price_range(&self) -> &[PriceRangeProperty];
fn take_price_range(&mut self) -> Vec<PriceRangeProperty>;
}
Expand description
This trait is for properties from https://schema.org/LocalBusiness.
Required Methods§
sourcefn get_branch_of(&self) -> &[BranchOfProperty]
fn get_branch_of(&self) -> &[BranchOfProperty]
👎Deprecated: This schema is superseded by https://schema.org/parentOrganization.
Get https://schema.org/branchOf from Self
as borrowed slice.
sourcefn take_branch_of(&mut self) -> Vec<BranchOfProperty>
fn take_branch_of(&mut self) -> Vec<BranchOfProperty>
👎Deprecated: This schema is superseded by https://schema.org/parentOrganization.
Take https://schema.org/branchOf from Self
as owned vector.
sourcefn get_currencies_accepted(&self) -> &[CurrenciesAcceptedProperty]
fn get_currencies_accepted(&self) -> &[CurrenciesAcceptedProperty]
Get https://schema.org/currenciesAccepted from Self
as borrowed slice.
sourcefn take_currencies_accepted(&mut self) -> Vec<CurrenciesAcceptedProperty>
fn take_currencies_accepted(&mut self) -> Vec<CurrenciesAcceptedProperty>
Take https://schema.org/currenciesAccepted from Self
as owned vector.
sourcefn get_opening_hours(&self) -> &[OpeningHoursProperty]
fn get_opening_hours(&self) -> &[OpeningHoursProperty]
Get https://schema.org/openingHours from Self
as borrowed slice.
sourcefn take_opening_hours(&mut self) -> Vec<OpeningHoursProperty>
fn take_opening_hours(&mut self) -> Vec<OpeningHoursProperty>
Take https://schema.org/openingHours from Self
as owned vector.
sourcefn get_payment_accepted(&self) -> &[PaymentAcceptedProperty]
fn get_payment_accepted(&self) -> &[PaymentAcceptedProperty]
Get https://schema.org/paymentAccepted from Self
as borrowed slice.
sourcefn take_payment_accepted(&mut self) -> Vec<PaymentAcceptedProperty>
fn take_payment_accepted(&mut self) -> Vec<PaymentAcceptedProperty>
Take https://schema.org/paymentAccepted from Self
as owned vector.
sourcefn get_price_range(&self) -> &[PriceRangeProperty]
fn get_price_range(&self) -> &[PriceRangeProperty]
Get https://schema.org/priceRange from Self
as borrowed slice.
sourcefn take_price_range(&mut self) -> Vec<PriceRangeProperty>
fn take_price_range(&mut self) -> Vec<PriceRangeProperty>
Take https://schema.org/priceRange from Self
as owned vector.