[][src]Struct df_st_core::df_st_info::DFSTInfo

pub struct DFSTInfo {
    pub version: String,
    pub enabled_features: Vec<String>,
    pub enabled_mods: Vec<ModInfo>,
    pub base_url: String,
    pub world_id: i32,
}

Information about DF Storyteller itself

Fields

version: String

The version of DF Storyteller currently running. This used the Semantic Versioning system. Example: "0.1.0" or "1.5.10" For pre-releases an addition might be added after the last number. The last number will then always be followed by a dash -. Example: "0.1.5-alpha-1" or "2.10.1-beta-2"

Only the major and minor version should be used in most cases. So for "0.5.7" only "0.5" should be checked. The "7" will just define the patches. The patches should not break anything (only fix them)

The following Regex expression can be used the check this field: Regex match: ^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+))?$ This will match "2.13.1-beta-5" to:

enabled_features: Vec<String>

Features that are enabled in DF Storyteller. This will be used to specified if a feature is enabled on this install. Future features might include: "maps", "dm_mode", "discovery_mode", ...

enabled_mods: Vec<ModInfo>

A list of enabled modification to the game and DF Storyteller. This list has to be specified in the settings of DF Storyteller. DF Storyteller can not detect mods from Dwarf Fortress.

base_url: String

The Base URL is the first part of the url where api request should go to. This is usually set to http://localhost:20350/api. But can be changes by the user in the settings. This value is also printed in the output for the user. Paintings can refer to this to get the initial base_url is not set.

world_id: i32

The id of the world that is currently loaded. This is the same value as the -w X flag, where X is the world id. This value can only be positive as negative numbers are not allowed by the terminal.

Implementations

impl DFSTInfo[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for DFSTInfo[src]

impl Debug for DFSTInfo[src]

impl Default for DFSTInfo[src]

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

impl JsonSchema for DFSTInfo[src]

impl SchemaExample for DFSTInfo[src]

impl Serialize for DFSTInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for DFSTInfo

impl Send for DFSTInfo

impl Sync for DFSTInfo

impl Unpin for DFSTInfo

impl UnwindSafe for DFSTInfo

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.