pub trait OpeningHoursSpecificationTrait {
// Required methods
fn get_closes(&self) -> &[ClosesProperty];
fn take_closes(&mut self) -> Vec<ClosesProperty>;
fn get_day_of_week(&self) -> &[DayOfWeekProperty];
fn take_day_of_week(&mut self) -> Vec<DayOfWeekProperty>;
fn get_opens(&self) -> &[OpensProperty];
fn take_opens(&mut self) -> Vec<OpensProperty>;
fn get_valid_from(&self) -> &[ValidFromProperty];
fn take_valid_from(&mut self) -> Vec<ValidFromProperty>;
fn get_valid_through(&self) -> &[ValidThroughProperty];
fn take_valid_through(&mut self) -> Vec<ValidThroughProperty>;
}
Expand description
This trait is for properties from https://schema.org/OpeningHoursSpecification.
Required Methods§
sourcefn get_closes(&self) -> &[ClosesProperty]
fn get_closes(&self) -> &[ClosesProperty]
Get https://schema.org/closes from Self
as borrowed slice.
sourcefn take_closes(&mut self) -> Vec<ClosesProperty>
fn take_closes(&mut self) -> Vec<ClosesProperty>
Take https://schema.org/closes from Self
as owned vector.
sourcefn get_day_of_week(&self) -> &[DayOfWeekProperty]
fn get_day_of_week(&self) -> &[DayOfWeekProperty]
Get https://schema.org/dayOfWeek from Self
as borrowed slice.
sourcefn take_day_of_week(&mut self) -> Vec<DayOfWeekProperty>
fn take_day_of_week(&mut self) -> Vec<DayOfWeekProperty>
Take https://schema.org/dayOfWeek from Self
as owned vector.
sourcefn get_opens(&self) -> &[OpensProperty]
fn get_opens(&self) -> &[OpensProperty]
Get https://schema.org/opens from Self
as borrowed slice.
sourcefn take_opens(&mut self) -> Vec<OpensProperty>
fn take_opens(&mut self) -> Vec<OpensProperty>
Take https://schema.org/opens from Self
as owned vector.
sourcefn get_valid_from(&self) -> &[ValidFromProperty]
fn get_valid_from(&self) -> &[ValidFromProperty]
Get https://schema.org/validFrom from Self
as borrowed slice.
sourcefn take_valid_from(&mut self) -> Vec<ValidFromProperty>
fn take_valid_from(&mut self) -> Vec<ValidFromProperty>
Take https://schema.org/validFrom from Self
as owned vector.
sourcefn get_valid_through(&self) -> &[ValidThroughProperty]
fn get_valid_through(&self) -> &[ValidThroughProperty]
Get https://schema.org/validThrough from Self
as borrowed slice.
sourcefn take_valid_through(&mut self) -> Vec<ValidThroughProperty>
fn take_valid_through(&mut self) -> Vec<ValidThroughProperty>
Take https://schema.org/validThrough from Self
as owned vector.