pub trait RealEstateListingTrait {
// Required methods
fn get_date_posted(&self) -> &[DatePostedProperty];
fn take_date_posted(&mut self) -> Vec<DatePostedProperty>;
fn get_lease_length(&self) -> &[LeaseLengthProperty];
fn take_lease_length(&mut self) -> Vec<LeaseLengthProperty>;
}
Expand description
This trait is for properties from https://schema.org/RealEstateListing.
Required Methods§
sourcefn get_date_posted(&self) -> &[DatePostedProperty]
fn get_date_posted(&self) -> &[DatePostedProperty]
Get https://schema.org/datePosted from Self
as borrowed slice.
sourcefn take_date_posted(&mut self) -> Vec<DatePostedProperty>
fn take_date_posted(&mut self) -> Vec<DatePostedProperty>
Take https://schema.org/datePosted from Self
as owned vector.
sourcefn get_lease_length(&self) -> &[LeaseLengthProperty]
fn get_lease_length(&self) -> &[LeaseLengthProperty]
Get https://schema.org/leaseLength from Self
as borrowed slice.
sourcefn take_lease_length(&mut self) -> Vec<LeaseLengthProperty>
fn take_lease_length(&mut self) -> Vec<LeaseLengthProperty>
Take https://schema.org/leaseLength from Self
as owned vector.