#[non_exhaustive]pub struct BmopfEmitOptions {
pub schema_version: BmopfSchemaVersion,
pub sideload_coordinates: bool,
}Expand description
Options for BMOPF JSON output.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schema_version: BmopfSchemaVersionThe schema version to write against.
The default is BmopfSchemaVersion::Bmopf020, the version that states
every class the model carries, so output relocates nothing. Set
BmopfSchemaVersion::Bmopf010 to write the version the task force
accepts, which moves the classes it has no table for under extras
and reports each move.
sideload_coordinates: boolCompatibility setting; coordinates always use schema-valid extras.geojson.
Both values retain supported bus locations and line paths.
Implementations§
Source§impl BmopfEmitOptions
impl BmopfEmitOptions
Sourcepub const fn with_schema_version(
self,
schema_version: BmopfSchemaVersion,
) -> Self
pub const fn with_schema_version( self, schema_version: BmopfSchemaVersion, ) -> Self
The options with the schema version replaced.
Trait Implementations§
Source§impl Clone for BmopfEmitOptions
impl Clone for BmopfEmitOptions
Source§fn clone(&self) -> BmopfEmitOptions
fn clone(&self) -> BmopfEmitOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BmopfEmitOptions
Source§impl Debug for BmopfEmitOptions
impl Debug for BmopfEmitOptions
Source§impl Default for BmopfEmitOptions
impl Default for BmopfEmitOptions
Source§fn default() -> BmopfEmitOptions
fn default() -> BmopfEmitOptions
Returns the “default value” for a type. Read more
impl Eq for BmopfEmitOptions
Source§impl PartialEq for BmopfEmitOptions
impl PartialEq for BmopfEmitOptions
Source§fn eq(&self, other: &BmopfEmitOptions) -> bool
fn eq(&self, other: &BmopfEmitOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BmopfEmitOptions
Auto Trait Implementations§
impl Freeze for BmopfEmitOptions
impl RefUnwindSafe for BmopfEmitOptions
impl Send for BmopfEmitOptions
impl Sync for BmopfEmitOptions
impl Unpin for BmopfEmitOptions
impl UnsafeUnpin for BmopfEmitOptions
impl UnwindSafe for BmopfEmitOptions
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