pub struct Entity {
pub key_values: IndexMap<String, String>,
pub connections: Option<Vec<(String, String)>>,
pub solids: Option<Vec<Solid>>,
pub editor: Editor,
}Expand description
Represents an entity in a VMF file.
Fields§
§key_values: IndexMap<String, String>The key-value pairs associated with this entity.
connections: Option<Vec<(String, String)>>The output connections of this entity.
solids: Option<Vec<Solid>>The solids associated with this entity, if any.
editor: EditorThe editor data for this entity.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entity
impl<'de> Deserialize<'de> for Entity
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
Source§impl VmfSerializable for Entity
impl VmfSerializable for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
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