pub struct Concept {
pub basic: BasicMembers,
pub parent: Option<String>,
pub abstract: Option<bool>,
pub inline: bool,
pub type: Type,
pub properties: Option<Vec<Property>>,
}Expand description
Fields§
§basic: BasicMembersThe basic fields of the type.
parent: Option<String>The name of the type’s parent, if any.
abstract: Option<bool>Whether the type is abstract, and thus can’t be created directly.
inline: boolWhether the type is inlined inside another property’s description.
type: TypeThe type of the type/concept.
Either a propert Type, or the string "builtin", indicating a fundamental type like string or number.
TODO: If this is Type::Simple, constrain it to builtin`.
properties: Option<Vec<Property>>The list of properties that the type has, if its type includes a struct.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Concept
impl<'de> Deserialize<'de> for Concept
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 Concept
impl RefUnwindSafe for Concept
impl Send for Concept
impl Sync for Concept
impl Unpin for Concept
impl UnwindSafe for Concept
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