[][src]Struct df_st_core::df_st_info::ModInfo

pub struct ModInfo {
    pub name: String,
    pub version: String,
    pub url: String,
    pub properties: HashMap<String, Value>,
}

Information about the a mod in Dwarf Fortress or DF Storyteller

Fields

name: String

The name of the mod The name must be unique, no mods can have the same name A list of mods can be found here

version: String

The version of the mod that is used. This can be used to enable/disable features in the UI.

url: String

A valid URL where the mod can be downloaded or more info can be found.

properties: HashMap<String, Value>

Additional properties that can be set by the mod.

Implementations

impl ModInfo[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for ModInfo[src]

impl Debug for ModInfo[src]

impl Default for ModInfo[src]

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

impl JsonSchema for ModInfo[src]

impl SchemaExample for ModInfo[src]

impl Serialize for ModInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for ModInfo

impl Send for ModInfo

impl Sync for ModInfo

impl Unpin for ModInfo

impl UnwindSafe for ModInfo

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> DynClone for T where
    T: Clone
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.