[][src]Struct df_st_core::df_world::historical_era::HistoricalEra

pub struct HistoricalEra {
    pub id: i32,
    pub name: Option<String>,
    pub start_year: Option<i32>,
}

An Historical Era is period of time with some defining feature in the world. The are often refereed to as ages The world might go through 1 or multiple ages. The ages change when the amount of powerful creatures or civilizations reaches some threshold.

Fields

id: i32

Identifier for the era. id must be unique for the whole world. This value is not given from files but generated after parsing.

name: Option<String>

The name of the historical era. The names follow a specific criteria that can be found here. It most often start with "The Age of ...".

start_year: Option<i32>

The year the historical era started with. The first are starts in the year "-1"

Implementations

impl HistoricalEra[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for HistoricalEra[src]

impl Debug for HistoricalEra[src]

impl Default for HistoricalEra[src]

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

impl Fillable for HistoricalEra[src]

impl Filler<HistoricalEra, HistoricalEra> for HistoricalEra[src]

impl<__S> GraphQLType<__S> for HistoricalEra where
    __S: ScalarValue,
    &'__b __S: ScalarRefValue<'__b>, 
[src]

type Context = ()

The expected context type for this GraphQL type Read more

type TypeInfo = ()

Type that may carry additional schema information Read more

impl Hash for HistoricalEra[src]

impl JsonSchema for HistoricalEra[src]

impl PartialEq<HistoricalEra> for HistoricalEra[src]

impl SchemaExample for HistoricalEra[src]

impl Serialize for HistoricalEra[src]

Auto Trait Implementations

impl RefUnwindSafe for HistoricalEra

impl Send for HistoricalEra

impl Sync for HistoricalEra

impl Unpin for HistoricalEra

impl UnwindSafe for HistoricalEra

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.