[][src]Struct df_st_core::df_world::entity::Entity

pub struct Entity {
    pub id: i32,
    pub name: Option<String>,
    pub honor: Vec<EntityHonor>,
    pub race: Option<String>,
    pub type_: Option<String>,
    pub worship_id: Vec<i32>,
    pub weapon: Vec<String>,
    pub profession: Vec<String>,
    pub entity_link: Vec<EntityLink>,
    pub entity_position: Vec<EntityPosition>,
    pub entity_position_assignment: Vec<EntityPositionAssignment>,
    pub hf_ids: Vec<i32>,
    pub child_en_ids: Vec<i32>,
    pub claims: Vec<Coordinate>,
    pub occasion: Vec<EntityOccasion>,
}

An Entity is a collective of something in the world. This is usually in the form of a civilization or government.

Fields

id: i32

Identifier for the entity. id must be unique for the whole world.

name: Option<String>honor: Vec<EntityHonor>race: Option<String>type_: Option<String>worship_id: Vec<i32>weapon: Vec<String>profession: Vec<String>entity_link: Vec<EntityLink>entity_position: Vec<EntityPosition>entity_position_assignment: Vec<EntityPositionAssignment>hf_ids: Vec<i32>child_en_ids: Vec<i32>claims: Vec<Coordinate>occasion: Vec<EntityOccasion>

Implementations

impl Entity[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for Entity[src]

impl Debug for Entity[src]

impl Default for Entity[src]

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

impl Fillable for Entity[src]

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

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

impl JsonSchema for Entity[src]

impl PartialEq<Entity> for Entity[src]

impl SchemaExample for Entity[src]

impl Serialize for Entity[src]

Auto Trait Implementations

impl RefUnwindSafe for Entity

impl Send for Entity

impl Sync for Entity

impl Unpin for Entity

impl UnwindSafe for Entity

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.