Struct map_model::edits::perma::PermanentMapEdits [−][src]
pub struct PermanentMapEdits { pub map_name: MapName, pub edits_name: String, pub version: usize, commands: Vec<PermanentEditCmd>, merge_zones: bool, pub proposal_description: Vec<String>, pub proposal_link: Option<String>, }
Expand description
MapEdits are converted to this before serializing. Referencing things like LaneID in a Map won’t work if the basemap is rebuilt from new OSM data, so instead we use stabler OSM IDs that’re less likely to change.
Fields
map_name: MapName
edits_name: String
version: usize
commands: Vec<PermanentEditCmd>
merge_zones: bool
If false, adjacent roads with the same AccessRestrictions will not be merged into the same Zone; every Road will be its own Zone. This is used to experiment with a per-road cap. Note this is a map-wide setting.
proposal_description: Vec<String>
Edits without these are player generated.
proposal_link: Option<String>
The link is optional even for proposals
Implementations
Transform permanent edits to MapEdits, looking up the map IDs by the hopefully stabler OSM IDs. Validate that the basemap hasn’t changed in important ways.
Transform permanent edits to MapEdits, looking up the map IDs by the hopefully stabler OSM IDs. Strip out commands that’re broken.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for PermanentMapEdits
impl Send for PermanentMapEdits
impl Sync for PermanentMapEdits
impl Unpin for PermanentMapEdits
impl UnwindSafe for PermanentMapEdits
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self