pub trait MonetaryAmountTrait {
// Required methods
fn get_currency(&self) -> &[CurrencyProperty];
fn take_currency(&mut self) -> Vec<CurrencyProperty>;
fn get_max_value(&self) -> &[MaxValueProperty];
fn take_max_value(&mut self) -> Vec<MaxValueProperty>;
fn get_min_value(&self) -> &[MinValueProperty];
fn take_min_value(&mut self) -> Vec<MinValueProperty>;
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_value(&self) -> &[ValueProperty];
fn take_value(&mut self) -> Vec<ValueProperty>;
}
Expand description
This trait is for properties from https://schema.org/MonetaryAmount.
Required Methods§
sourcefn get_currency(&self) -> &[CurrencyProperty]
fn get_currency(&self) -> &[CurrencyProperty]
Get https://schema.org/currency from Self
as borrowed slice.
sourcefn take_currency(&mut self) -> Vec<CurrencyProperty>
fn take_currency(&mut self) -> Vec<CurrencyProperty>
Take https://schema.org/currency from Self
as owned vector.
sourcefn get_max_value(&self) -> &[MaxValueProperty]
fn get_max_value(&self) -> &[MaxValueProperty]
Get https://schema.org/maxValue from Self
as borrowed slice.
sourcefn take_max_value(&mut self) -> Vec<MaxValueProperty>
fn take_max_value(&mut self) -> Vec<MaxValueProperty>
Take https://schema.org/maxValue from Self
as owned vector.
sourcefn get_min_value(&self) -> &[MinValueProperty]
fn get_min_value(&self) -> &[MinValueProperty]
Get https://schema.org/minValue from Self
as borrowed slice.
sourcefn take_min_value(&mut self) -> Vec<MinValueProperty>
fn take_min_value(&mut self) -> Vec<MinValueProperty>
Take https://schema.org/minValue 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_value(&self) -> &[ValueProperty]
fn get_value(&self) -> &[ValueProperty]
Get https://schema.org/value from Self
as borrowed slice.
sourcefn take_value(&mut self) -> Vec<ValueProperty>
fn take_value(&mut self) -> Vec<ValueProperty>
Take https://schema.org/value from Self
as owned vector.