pub struct CreateResult {
pub eid: EntityId,
pub model_type: ModelName,
pub rel: Option<Vec<EntityId>>,
pub children: Option<Vec<CreateResult>>,
pub extra_info: Option<HashMap<String, String>>,
}Expand description
The type for elements of the list returned by create calls in the mosaik API.
Fields§
§eid: EntityIdThe entity ID of this entity.
model_type: ModelNameThe model name (as given in the simulator’s meta) of this entity.
rel: Option<Vec<EntityId>>The entity IDs of the entities of this simulator that are related to this entity.
children: Option<Vec<CreateResult>>The child entities of this entity.
extra_info: Option<HashMap<String, String>>Any additional information about the entity that the simulator wants to pass back to the scenario.
Implementations§
Trait Implementations§
Source§impl Clone for CreateResult
impl Clone for CreateResult
Source§fn clone(&self) -> CreateResult
fn clone(&self) -> CreateResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateResult
impl Debug for CreateResult
Source§impl<'de> Deserialize<'de> for CreateResult
impl<'de> Deserialize<'de> for CreateResult
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 PartialEq for CreateResult
impl PartialEq for CreateResult
Source§impl Serialize for CreateResult
impl Serialize for CreateResult
impl StructuralPartialEq for CreateResult
Auto Trait Implementations§
impl Freeze for CreateResult
impl RefUnwindSafe for CreateResult
impl Send for CreateResult
impl Sync for CreateResult
impl Unpin for CreateResult
impl UnwindSafe for CreateResult
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