Trait schema_org_types::HotelRoomTrait
source · pub trait HotelRoomTrait {
// Required methods
fn get_bed(&self) -> &[BedProperty];
fn take_bed(&mut self) -> Vec<BedProperty>;
fn get_occupancy(&self) -> &[OccupancyProperty];
fn take_occupancy(&mut self) -> Vec<OccupancyProperty>;
}
Expand description
This trait is for properties from https://schema.org/HotelRoom.
Required Methods§
sourcefn get_bed(&self) -> &[BedProperty]
fn get_bed(&self) -> &[BedProperty]
Get https://schema.org/bed from Self
as borrowed slice.
sourcefn take_bed(&mut self) -> Vec<BedProperty>
fn take_bed(&mut self) -> Vec<BedProperty>
Take https://schema.org/bed from Self
as owned vector.
sourcefn get_occupancy(&self) -> &[OccupancyProperty]
fn get_occupancy(&self) -> &[OccupancyProperty]
Get https://schema.org/occupancy from Self
as borrowed slice.
sourcefn take_occupancy(&mut self) -> Vec<OccupancyProperty>
fn take_occupancy(&mut self) -> Vec<OccupancyProperty>
Take https://schema.org/occupancy from Self
as owned vector.