pub struct Property {
pub basic: BasicMembers,
pub visibility: Option<Vec<String>>,
pub alt_name: Option<String>,
pub override: bool,
pub type: Type,
pub optional: bool,
pub default: Option<PropertyDefault>,
}Expand description
A property for a complex type.
Fields§
§basic: BasicMembersThe basic fields of the type.
visibility: Option<Vec<String>>The list of game expansions needed to use this property.
If not present, no restrictions apply.
Possible values: "space_age"
alt_name: Option<String>An alternative name for the property. Either this or [BasicMember::name] can be used to refer to the property.
override: boolWhether the property overrides a property of the same name in one of its parents.
type: TypeThe type of the property.
optional: boolWhether the property is optional and can be omitted. If so, it falls back to Property::default.
default: Option<PropertyDefault>The default value of the property.
Either a textual description or a literal value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Property
impl<'de> Deserialize<'de> for Property
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Property
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
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
Mutably borrows from an owned value. Read more