Struct transit_model::objects::Dataset
source · pub struct Dataset {
pub id: String,
pub contributor_id: String,
pub start_date: Date,
pub end_date: Date,
pub dataset_type: Option<DatasetType>,
pub extrapolation: bool,
pub desc: Option<String>,
pub system: Option<String>,
}
Fields§
§id: String
§contributor_id: String
§start_date: Date
§end_date: Date
§dataset_type: Option<DatasetType>
§extrapolation: bool
§desc: Option<String>
§system: Option<String>
Implementations§
Trait Implementations§
source§impl AddPrefix for Dataset
impl AddPrefix for Dataset
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 Dataset
impl<'de> Deserialize<'de> for Dataset
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<Dataset> for IdxSet<CommercialMode>
impl GetCorresponding<Dataset> for IdxSet<CommercialMode>
source§impl GetCorresponding<Dataset> for IdxSet<Contributor>
impl GetCorresponding<Dataset> for IdxSet<Contributor>
source§impl GetCorresponding<Dataset> for IdxSet<PhysicalMode>
impl GetCorresponding<Dataset> for IdxSet<PhysicalMode>
source§impl GetCorresponding<Dataset> for IdxSet<VehicleJourney>
impl GetCorresponding<Dataset> for IdxSet<VehicleJourney>
source§impl Id<Contributor> for Dataset
impl Id<Contributor> for Dataset
source§impl Id<Dataset> for VehicleJourney
impl Id<Dataset> for VehicleJourney
source§impl PartialEq<Dataset> for Dataset
impl PartialEq<Dataset> for Dataset
impl Eq for Dataset
impl StructuralEq for Dataset
impl StructuralPartialEq for Dataset
Auto Trait Implementations§
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnwindSafe for Dataset
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