[][src]Struct df_st_core::df_world::identity::Identity

pub struct Identity {
    pub id: i32,
    pub name: Option<String>,
    pub hf_id: Option<i32>,
    pub race: Option<String>,
    pub caste: Option<String>,
    pub birth_year: Option<i32>,
    pub birth_second: Option<i32>,
    pub profession: Option<String>,
    pub entity_id: Option<i32>,
    pub nemesis_id: Option<i32>,
}

A (assumed) Identity in the world in the world. This identity is (usually) fake. (TODO: Check)

Fields

id: i32

Identifier for the assumed/fake identity. id must be unique for the whole world.

name: Option<String>

The name used for this identity

hf_id: Option<i32>

Link to the Historical Figure that uses this identity

race: Option<String>

The race of the new identity

caste: Option<String>

The gender of the new identity

birth_year: Option<i32>

The year this assumed/fake identity was presumably born in

birth_second: Option<i32>

The month/day this assumed/fake identity was presumably born in

profession: Option<String>

The profession/job the identity presumably has/is doing

entity_id: Option<i32>

The entity the identity is presumably part of

nemesis_id: Option<i32>

Might be referring to hf_id (TODO)

Trait Implementations

impl Clone for Identity[src]

impl CreateNew for Identity[src]

impl Debug for Identity[src]

impl Default for Identity[src]

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

impl Fillable for Identity[src]

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

impl<__S> GraphQLType<__S> for Identity 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 Identity[src]

impl JsonSchema for Identity[src]

impl PartialEq<Identity> for Identity[src]

impl SchemaExample for Identity[src]

impl Serialize for Identity[src]

Auto Trait Implementations

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.