pub struct ObjectType {
pub pointers: IndexMap<String, Pointer>,
pub is_top_level: bool,
pub is_non_locatable: bool,
pub is_multi: bool,
}Fields§
§pointers: IndexMap<String, Pointer>Pointer of the object (properties and links)
is_top_level: boolWhen a type is top-level, it’s properties are configured with configure set {obj}::{prop} := ...
Otherwise, it is configured with configure insert {obj} := { {prop} := ... };
is_non_locatable: boolIndicates that this object cannot be identified just by its name. This happens, for example,
when it is used as a link on a multi object. configure insert {obj} does not indicate which parent
object this object belongs to. Instead these objects are inserted in a nested insert stmt.
is_multi: boolIndicates that the object is used as multi property, so we should expect arrays instead of tables.
Implementations§
Source§impl ObjectType
impl ObjectType
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObjectType
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnsafeUnpin for ObjectType
impl UnwindSafe for ObjectType
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