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§

source

fn get_bed(&self) -> &[BedProperty]

Get https://schema.org/bed from Self as borrowed slice.

source

fn take_bed(&mut self) -> Vec<BedProperty>

Take https://schema.org/bed from Self as owned vector.

source

fn get_occupancy(&self) -> &[OccupancyProperty]

Get https://schema.org/occupancy from Self as borrowed slice.

source

fn take_occupancy(&mut self) -> Vec<OccupancyProperty>

Take https://schema.org/occupancy from Self as owned vector.

Implementors§