pub struct Define {
pub basic: BasicMembers,
pub parents: Vec<String>,
pub values: Option<Vec<DefineValue>>,
pub subkeys: Option<Vec<Define>>,
}Expand description
Defines can be recursive in nature, meaning one Define can have multiple sub-Defines that have the same structure. These are singled out as subkeys instead of values.
Fields§
§basic: BasicMembersThe basic fields of the type.
parents: Vec<String>The recursive full name of the define, ordered from parent to child.
If the define is a subkey, this will be the full name of the parent define followed by the subkey name. This value is not present in the JSON format, but is added during the parsing process.
values: Option<Vec<DefineValue>>A member of the define.
subkeys: Option<Vec<Define>>A list of sub-defines.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Define
impl<'de> Deserialize<'de> for Define
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
Auto Trait Implementations§
impl Freeze for Define
impl RefUnwindSafe for Define
impl Send for Define
impl Sync for Define
impl Unpin for Define
impl UnwindSafe for Define
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