pub struct RawField {Show 15 fields
pub primary_key: String,
pub name: String,
pub field_type: String,
pub required: String,
pub default_value: Option<String>,
pub max_length: Option<String>,
pub is_filename: Option<String>,
pub filename_relative_path: Option<String>,
pub fragment_path: Option<String>,
pub column_source_column: Option<Vec<String>>,
pub column_source_table: Option<String>,
pub field_description: Option<String>,
pub encyclopaedia_export: Option<String>,
pub highlight_flag: Option<String>,
pub is_old_game: Option<bool>,
}Expand description
Individual field definition from Assembly Kit schema.
This is the raw equivalent to RPFM’s Field struct, containing all metadata
about a single table column.
§Type Information
Assembly Kit uses string-based type names:
"yesno"- Boolean value"single","double"- Floating point numbers"integer"- 32-bit integer"autonumber","card64"- 64-bit integer (often auto-incrementing)"text","expression"- String data"colour"- RGB color value
§Foreign Key Relationships
Relationships are defined via column_source_table and column_source_column:
- First element in
column_source_columnis the referenced primary key - Additional elements (if present) are lookup columns for concatenated display
Fields§
§primary_key: StringPrimary key flag ("1" = true, "0" = false).
name: StringField name (column name in the table).
field_type: StringAssembly Kit type name (see struct documentation for type mapping).
required: StringRequired field flag ("1" = required, "0" = optional).
default_value: Option<String>Default value for this field when creating new rows.
max_length: Option<String>Maximum allowed string length for text fields.
is_filename: Option<String>Filename flag - indicates this field contains a game file path.
filename_relative_path: Option<String>Relative path where referenced files should be located.
Multiple paths can be specified, separated by semicolons.
fragment_path: Option<String>Fragment path (internal use, not useful for modders).
column_source_column: Option<Vec<String>>Referenced column names for foreign key relationships.
First element is the referenced primary key column. Additional elements are lookup columns for composite display.
column_source_table: Option<String>Referenced table name for foreign key relationships.
field_description: Option<String>Human-readable description of the field’s purpose.
encyclopaedia_export: Option<String>Encyclopaedia export flag ("1" = export, "0" = don’t export).
Indicates if this field should be included in game encyclopaedia exports.
highlight_flag: Option<String>Highlight color flag for marking unused/deprecated fields.
"#c8c8c8" (gray) indicates an unused field in Warhammer 3.
is_old_game: Option<bool>Custom flag for old game (Empire/Napoleon/Shogun 2) type handling.
When true, uses UTF-16 strings instead of UTF-8.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawField
impl<'de> Deserialize<'de> for RawField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for RawField
impl RefUnwindSafe for RawField
impl Send for RawField
impl Sync for RawField
impl Unpin for RawField
impl UnsafeUnpin for RawField
impl UnwindSafe for RawField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.