Struct abstio::abst_data::DataPacks[][src]

pub struct DataPacks {
    pub runtime: BTreeSet<String>,
    pub input: BTreeSet<String>,
}

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

impl DataPacks[src]

pub fn load_or_create() -> DataPacks[src]

Load the player’s config for what files to download, or create the config.

pub fn save(&self)[src]

Saves the player’s config for what files to download.

Trait Implementations

impl<'de> Deserialize<'de> for DataPacks[src]

impl Serialize for DataPacks[src]

Auto Trait Implementations

impl RefUnwindSafe for DataPacks

impl Send for DataPacks

impl Sync for DataPacks

impl Unpin for DataPacks

impl UnwindSafe for DataPacks

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.