Trait schema_org_types::OwnershipInfoTrait
source · pub trait OwnershipInfoTrait {
// Required methods
fn get_acquired_from(&self) -> &[AcquiredFromProperty];
fn take_acquired_from(&mut self) -> Vec<AcquiredFromProperty>;
fn get_owned_from(&self) -> &[OwnedFromProperty];
fn take_owned_from(&mut self) -> Vec<OwnedFromProperty>;
fn get_owned_through(&self) -> &[OwnedThroughProperty];
fn take_owned_through(&mut self) -> Vec<OwnedThroughProperty>;
fn get_type_of_good(&self) -> &[TypeOfGoodProperty];
fn take_type_of_good(&mut self) -> Vec<TypeOfGoodProperty>;
}
Expand description
This trait is for properties from https://schema.org/OwnershipInfo.
Required Methods§
sourcefn get_acquired_from(&self) -> &[AcquiredFromProperty]
fn get_acquired_from(&self) -> &[AcquiredFromProperty]
Get https://schema.org/acquiredFrom from Self
as borrowed slice.
sourcefn take_acquired_from(&mut self) -> Vec<AcquiredFromProperty>
fn take_acquired_from(&mut self) -> Vec<AcquiredFromProperty>
Take https://schema.org/acquiredFrom from Self
as owned vector.
sourcefn get_owned_from(&self) -> &[OwnedFromProperty]
fn get_owned_from(&self) -> &[OwnedFromProperty]
Get https://schema.org/ownedFrom from Self
as borrowed slice.
sourcefn take_owned_from(&mut self) -> Vec<OwnedFromProperty>
fn take_owned_from(&mut self) -> Vec<OwnedFromProperty>
Take https://schema.org/ownedFrom from Self
as owned vector.
sourcefn get_owned_through(&self) -> &[OwnedThroughProperty]
fn get_owned_through(&self) -> &[OwnedThroughProperty]
Get https://schema.org/ownedThrough from Self
as borrowed slice.
sourcefn take_owned_through(&mut self) -> Vec<OwnedThroughProperty>
fn take_owned_through(&mut self) -> Vec<OwnedThroughProperty>
Take https://schema.org/ownedThrough 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.