pub struct DataPacks {
pub runtime: BTreeSet<String>,
pub input: BTreeSet<String>,
}
Expand description
Player-chosen groups of files to opt into downloading
Fields§
§runtime: BTreeSet<String>
A list of cities to download for using in A/B Street. Expressed the same as
CityName::to_path
, like “gb/london”.
input: BTreeSet<String>
A list of cities to download for running the map importer.
Implementations§
Source§impl DataPacks
impl DataPacks
Sourcepub fn load_or_create() -> DataPacks
pub fn load_or_create() -> DataPacks
Load the player’s config for what files to download, or create the config.
Sourcepub fn all_data_packs() -> DataPacks
pub fn all_data_packs() -> DataPacks
Fill out all data packs based on the local manifest.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataPacks
impl<'de> Deserialize<'de> for DataPacks
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
Auto Trait Implementations§
impl Freeze for DataPacks
impl RefUnwindSafe for DataPacks
impl Send for DataPacks
impl Sync for DataPacks
impl Unpin for DataPacks
impl UnwindSafe for DataPacks
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