pub trait LodgingReservationTrait {
    // Required methods
    fn get_checkin_time(&self) -> &[CheckinTimeProperty];
    fn take_checkin_time(&mut self) -> Vec<CheckinTimeProperty>;
    fn get_checkout_time(&self) -> &[CheckoutTimeProperty];
    fn take_checkout_time(&mut self) -> Vec<CheckoutTimeProperty>;
    fn get_lodging_unit_description(&self) -> &[LodgingUnitDescriptionProperty];
    fn take_lodging_unit_description(
        &mut self
    ) -> Vec<LodgingUnitDescriptionProperty>;
    fn get_lodging_unit_type(&self) -> &[LodgingUnitTypeProperty];
    fn take_lodging_unit_type(&mut self) -> Vec<LodgingUnitTypeProperty>;
    fn get_num_adults(&self) -> &[NumAdultsProperty];
    fn take_num_adults(&mut self) -> Vec<NumAdultsProperty>;
    fn get_num_children(&self) -> &[NumChildrenProperty];
    fn take_num_children(&mut self) -> Vec<NumChildrenProperty>;
}
Expand description

This trait is for properties from https://schema.org/LodgingReservation.

Required Methods§

source

fn get_checkin_time(&self) -> &[CheckinTimeProperty]

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

source

fn take_checkin_time(&mut self) -> Vec<CheckinTimeProperty>

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

source

fn get_checkout_time(&self) -> &[CheckoutTimeProperty]

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

source

fn take_checkout_time(&mut self) -> Vec<CheckoutTimeProperty>

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

source

fn get_lodging_unit_description(&self) -> &[LodgingUnitDescriptionProperty]

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

source

fn take_lodging_unit_description( &mut self ) -> Vec<LodgingUnitDescriptionProperty>

source

fn get_lodging_unit_type(&self) -> &[LodgingUnitTypeProperty]

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

source

fn take_lodging_unit_type(&mut self) -> Vec<LodgingUnitTypeProperty>

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

source

fn get_num_adults(&self) -> &[NumAdultsProperty]

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

source

fn take_num_adults(&mut self) -> Vec<NumAdultsProperty>

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

source

fn get_num_children(&self) -> &[NumChildrenProperty]

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

source

fn take_num_children(&mut self) -> Vec<NumChildrenProperty>

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

Implementors§