bambam 0.3.1

The Behavior and Advanced Mobility Big Access Model
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::num::NonZeroU64;

use serde::{Deserialize, Serialize};

use bambam_core::model::state::LegIdx;

/// configuration for the multimodal labeling model. this type is deserialized from the
/// config [label] section and set as defaults for the label model. at query time, this
/// can be deserialized again to override defaults.
///
/// all values must be _optional_ as an invariant for the deserialization algorithm
/// used by the [`MultimodalLabelService`].
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct MultimodalLabelConfig {
    pub max_trip_legs: Option<NonZeroU64>,
    pub modes: Option<Vec<String>>,
}