pub struct ServiceAttributes {Show 14 fields
pub valid_days: Vec<Day>,
pub start_date: Date<FixedOffset>,
pub schedule_typicality: ScheduleTypicality,
pub schedule_type: Option<String>,
pub schedule_name: Option<String>,
pub removed_dates_notes: Vec<Option<String>>,
pub removed_dates: Vec<Date<FixedOffset>>,
pub rating_start_date: Option<Date<FixedOffset>>,
pub rating_end_date: Option<Date<FixedOffset>>,
pub rating_description: Option<String>,
pub end_date: Date<FixedOffset>,
pub description: Option<String>,
pub added_dates_notes: Vec<Option<String>>,
pub added_dates: Vec<Date<FixedOffset>>,
}Expand description
Attributes for service.
Fields§
§valid_days: Vec<Day>Days of the week.
start_date: Date<FixedOffset>Earliest date which is valid for this service.
schedule_typicality: ScheduleTypicalityDescribes how well this schedule represents typical service for the listed schedule type.
schedule_type: Option<String>Description of the schedule type the service can be applied.
schedule_name: Option<String>Description of when the service is in effect.
removed_dates_notes: Vec<Option<String>>Extra information about exceptional dates (e.g. holiday name).
removed_dates: Vec<Date<FixedOffset>>Exceptional dates when the service is not valid.
rating_start_date: Option<Date<FixedOffset>>Earliest date which is a part of the rating (season) which contains this service.
rating_end_date: Option<Date<FixedOffset>>Latest date which is a part of the rating (season) which contains this service.
rating_description: Option<String>Human-readable description of the rating (season), as it should appear on public-facing websites and applications.
end_date: Date<FixedOffset>Latest date which is valid for this service.
description: Option<String>Human-readable description of the service, as it should appear on public-facing websites and applications.
added_dates_notes: Vec<Option<String>>Extra information about additional dates (e.g. holiday name).
added_dates: Vec<Date<FixedOffset>>Additional dates when the service is valid.
Trait Implementations§
Source§impl Clone for ServiceAttributes
impl Clone for ServiceAttributes
Source§fn clone(&self) -> ServiceAttributes
fn clone(&self) -> ServiceAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServiceAttributes
impl Debug for ServiceAttributes
Source§impl<'de> Deserialize<'de> for ServiceAttributes
impl<'de> Deserialize<'de> for ServiceAttributes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ServiceAttributes
impl PartialEq for ServiceAttributes
Source§impl Serialize for ServiceAttributes
impl Serialize for ServiceAttributes
impl StructuralPartialEq for ServiceAttributes
Auto Trait Implementations§
impl Freeze for ServiceAttributes
impl RefUnwindSafe for ServiceAttributes
impl Send for ServiceAttributes
impl Sync for ServiceAttributes
impl Unpin for ServiceAttributes
impl UnwindSafe for ServiceAttributes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more