[][src]Struct df_st_core::df_world::entity_population::EntityPopulation

pub struct EntityPopulation {
    pub id: i32,
    pub civ_id: Option<i32>,
    pub races: Vec<String>,
}

The population of an entity, usually civilization in the world.

Fields

id: i32

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

civ_id: Option<i32>races: Vec<String>

Implementations

impl EntityPopulation[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for EntityPopulation[src]

impl Debug for EntityPopulation[src]

impl Default for EntityPopulation[src]

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

impl Fillable for EntityPopulation[src]

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

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

impl JsonSchema for EntityPopulation[src]

impl PartialEq<EntityPopulation> for EntityPopulation[src]

impl SchemaExample for EntityPopulation[src]

impl Serialize for EntityPopulation[src]

Auto Trait Implementations

impl RefUnwindSafe for EntityPopulation

impl Send for EntityPopulation

impl Sync for EntityPopulation

impl Unpin for EntityPopulation

impl UnwindSafe for EntityPopulation

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.