[−][src]Struct df_st_core::df_st_info::DFSTInfo
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:
- Group #1: "2"
- Group #2: "13"
- Group #3: "1"
- Group #4: "beta-5"
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]
Trait Implementations
impl Clone for DFSTInfo
[src]
impl Debug for DFSTInfo
[src]
impl Default for DFSTInfo
[src]
impl<'de> Deserialize<'de> for DFSTInfo
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl JsonSchema for DFSTInfo
[src]
fn schema_name() -> String
[src]
fn json_schema(gen: &mut SchemaGenerator) -> Schema
[src]
fn is_referenceable() -> bool
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,