pub trait TypeAndQuantityNodeTrait {
// Required methods
fn get_amount_of_this_good(&self) -> &[AmountOfThisGoodProperty];
fn take_amount_of_this_good(&mut self) -> Vec<AmountOfThisGoodProperty>;
fn get_business_function(&self) -> &[BusinessFunctionProperty];
fn take_business_function(&mut self) -> Vec<BusinessFunctionProperty>;
fn get_type_of_good(&self) -> &[TypeOfGoodProperty];
fn take_type_of_good(&mut self) -> Vec<TypeOfGoodProperty>;
fn get_unit_code(&self) -> &[UnitCodeProperty];
fn take_unit_code(&mut self) -> Vec<UnitCodeProperty>;
fn get_unit_text(&self) -> &[UnitTextProperty];
fn take_unit_text(&mut self) -> Vec<UnitTextProperty>;
}
Expand description
This trait is for properties from https://schema.org/TypeAndQuantityNode.
Required Methods§
sourcefn get_amount_of_this_good(&self) -> &[AmountOfThisGoodProperty]
fn get_amount_of_this_good(&self) -> &[AmountOfThisGoodProperty]
Get https://schema.org/amountOfThisGood from Self
as borrowed slice.
sourcefn take_amount_of_this_good(&mut self) -> Vec<AmountOfThisGoodProperty>
fn take_amount_of_this_good(&mut self) -> Vec<AmountOfThisGoodProperty>
Take https://schema.org/amountOfThisGood from Self
as owned vector.
sourcefn get_business_function(&self) -> &[BusinessFunctionProperty]
fn get_business_function(&self) -> &[BusinessFunctionProperty]
Get https://schema.org/businessFunction from Self
as borrowed slice.
sourcefn take_business_function(&mut self) -> Vec<BusinessFunctionProperty>
fn take_business_function(&mut self) -> Vec<BusinessFunctionProperty>
Take https://schema.org/businessFunction from Self
as owned vector.
sourcefn get_type_of_good(&self) -> &[TypeOfGoodProperty]
fn get_type_of_good(&self) -> &[TypeOfGoodProperty]
Get https://schema.org/typeOfGood from Self
as borrowed slice.
sourcefn take_type_of_good(&mut self) -> Vec<TypeOfGoodProperty>
fn take_type_of_good(&mut self) -> Vec<TypeOfGoodProperty>
Take https://schema.org/typeOfGood from Self
as owned vector.
sourcefn get_unit_code(&self) -> &[UnitCodeProperty]
fn get_unit_code(&self) -> &[UnitCodeProperty]
Get https://schema.org/unitCode from Self
as borrowed slice.
sourcefn take_unit_code(&mut self) -> Vec<UnitCodeProperty>
fn take_unit_code(&mut self) -> Vec<UnitCodeProperty>
Take https://schema.org/unitCode from Self
as owned vector.
sourcefn get_unit_text(&self) -> &[UnitTextProperty]
fn get_unit_text(&self) -> &[UnitTextProperty]
Get https://schema.org/unitText from Self
as borrowed slice.
sourcefn take_unit_text(&mut self) -> Vec<UnitTextProperty>
fn take_unit_text(&mut self) -> Vec<UnitTextProperty>
Take https://schema.org/unitText from Self
as owned vector.