pub struct ExternalPerson {
    pub trips: Vec<ExternalTrip>,
}

Fields

trips: Vec<ExternalTrip>

Implementations

Import external scenario data. The main difference between ExternalPerson and PersonSpec is a way to specify endpoints by a LonLat. This is snapped to the nearest building. If the point is outside of the map boundary, it’s snapped to the nearest border (by Euclidean distance – the network outside the given map isn’t known). Failure happens if a point is within the map, but not close enough to any buildings. If skip_problems is true, then those failures are logged; otherwise this panics at the first problem.

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.