Struct transit_model::objects::Calendar
source · pub struct Calendar {
pub id: String,
pub dates: BTreeSet<Date>,
}
Fields§
§id: String
§dates: BTreeSet<Date>
Implementations§
Trait Implementations§
source§impl AddPrefix for Calendar
impl AddPrefix for Calendar
source§fn prefix(&mut self, prefix_conf: &PrefixConfiguration)
fn prefix(&mut self, prefix_conf: &PrefixConfiguration)
Add the prefix to all elements of the object that needs to be prefixed.
PrefixConfiguration contains all the needed metadata to create the
complete prefix.
source§fn add_prefix(&mut self, prefix: &str)
fn add_prefix(&mut self, prefix: &str)
👎Deprecated since 0.24.0: please use
AddPrefix::prefix()
insteadAdd the prefix to all elements of the object that needs to be prefixed.
source§fn add_prefix_with_sep(&mut self, prefix: &str, sep: &str)
fn add_prefix_with_sep(&mut self, prefix: &str, sep: &str)
👎Deprecated since 0.24.0: please use
AddPrefix::prefix()
insteadAdd the prefix to all elements of the object that needs to be prefixed.
A separator will be placed between the prefix and the identifier.
source§impl<'de> Deserialize<'de> for Calendar
impl<'de> Deserialize<'de> for Calendar
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl GetCorresponding<Calendar> for IdxSet<CommercialMode>
impl GetCorresponding<Calendar> for IdxSet<CommercialMode>
source§impl GetCorresponding<Calendar> for IdxSet<Contributor>
impl GetCorresponding<Calendar> for IdxSet<Contributor>
source§impl GetCorresponding<Calendar> for IdxSet<PhysicalMode>
impl GetCorresponding<Calendar> for IdxSet<PhysicalMode>
source§impl GetCorresponding<Calendar> for IdxSet<VehicleJourney>
impl GetCorresponding<Calendar> for IdxSet<VehicleJourney>
source§impl Id<Calendar> for VehicleJourney
impl Id<Calendar> for VehicleJourney
source§impl PartialEq<Calendar> for Calendar
impl PartialEq<Calendar> for Calendar
impl Eq for Calendar
impl StructuralEq for Calendar
impl StructuralPartialEq for Calendar
Auto Trait Implementations§
impl RefUnwindSafe for Calendar
impl Send for Calendar
impl Sync for Calendar
impl Unpin for Calendar
impl UnwindSafe for Calendar
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
Mutably borrows from an owned value. Read more