Trait schema_org_types::TradeActionTrait
source · pub trait TradeActionTrait {
// Required methods
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>;
}
Expand description
This trait is for properties from https://schema.org/TradeAction.
Required Methods§
sourcefn get_price(&self) -> &[PriceProperty]
fn get_price(&self) -> &[PriceProperty]
Get https://schema.org/price from Self
as borrowed slice.
sourcefn take_price(&mut self) -> Vec<PriceProperty>
fn take_price(&mut self) -> Vec<PriceProperty>
Take https://schema.org/price from Self
as owned vector.
sourcefn get_price_currency(&self) -> &[PriceCurrencyProperty]
fn get_price_currency(&self) -> &[PriceCurrencyProperty]
Get https://schema.org/priceCurrency from Self
as borrowed slice.
sourcefn take_price_currency(&mut self) -> Vec<PriceCurrencyProperty>
fn take_price_currency(&mut self) -> Vec<PriceCurrencyProperty>
Take https://schema.org/priceCurrency 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.