pub trait DatedMoneySpecificationTrait {
// Required methods
fn get_amount(&self) -> &[AmountProperty];
fn take_amount(&mut self) -> Vec<AmountProperty>;
fn get_currency(&self) -> &[CurrencyProperty];
fn take_currency(&mut self) -> Vec<CurrencyProperty>;
fn get_end_date(&self) -> &[EndDateProperty];
fn take_end_date(&mut self) -> Vec<EndDateProperty>;
fn get_start_date(&self) -> &[StartDateProperty];
fn take_start_date(&mut self) -> Vec<StartDateProperty>;
}
👎Deprecated: This schema is superseded by https://schema.org/MonetaryAmount.
Expand description
This trait is for properties from https://schema.org/DatedMoneySpecification.
Required Methods§
sourcefn get_amount(&self) -> &[AmountProperty]
fn get_amount(&self) -> &[AmountProperty]
👎Deprecated: This schema is superseded by https://schema.org/MonetaryAmount.
Get https://schema.org/amount from Self
as borrowed slice.
sourcefn take_amount(&mut self) -> Vec<AmountProperty>
fn take_amount(&mut self) -> Vec<AmountProperty>
👎Deprecated: This schema is superseded by https://schema.org/MonetaryAmount.
Take https://schema.org/amount from Self
as owned vector.
sourcefn get_currency(&self) -> &[CurrencyProperty]
fn get_currency(&self) -> &[CurrencyProperty]
👎Deprecated: This schema is superseded by https://schema.org/MonetaryAmount.
Get https://schema.org/currency from Self
as borrowed slice.
sourcefn take_currency(&mut self) -> Vec<CurrencyProperty>
fn take_currency(&mut self) -> Vec<CurrencyProperty>
👎Deprecated: This schema is superseded by https://schema.org/MonetaryAmount.
Take https://schema.org/currency from Self
as owned vector.
sourcefn get_end_date(&self) -> &[EndDateProperty]
fn get_end_date(&self) -> &[EndDateProperty]
👎Deprecated: This schema is superseded by https://schema.org/MonetaryAmount.
Get https://schema.org/endDate from Self
as borrowed slice.
sourcefn take_end_date(&mut self) -> Vec<EndDateProperty>
fn take_end_date(&mut self) -> Vec<EndDateProperty>
👎Deprecated: This schema is superseded by https://schema.org/MonetaryAmount.
Take https://schema.org/endDate from Self
as owned vector.
sourcefn get_start_date(&self) -> &[StartDateProperty]
fn get_start_date(&self) -> &[StartDateProperty]
👎Deprecated: This schema is superseded by https://schema.org/MonetaryAmount.
Get https://schema.org/startDate from Self
as borrowed slice.
sourcefn take_start_date(&mut self) -> Vec<StartDateProperty>
fn take_start_date(&mut self) -> Vec<StartDateProperty>
👎Deprecated: This schema is superseded by https://schema.org/MonetaryAmount.
Take https://schema.org/startDate from Self
as owned vector.