#[non_exhaustive]pub struct CreateEntityInput {
pub workspace_id: Option<String>,
pub entity_id: Option<String>,
pub entity_name: Option<String>,
pub description: Option<String>,
pub components: Option<HashMap<String, ComponentRequest>>,
pub composite_components: Option<HashMap<String, CompositeComponentRequest>>,
pub parent_entity_id: Option<String>,
pub tags: Option<HashMap<String, String>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.workspace_id: Option<String>The ID of the workspace that contains the entity.
entity_id: Option<String>The ID of the entity.
entity_name: Option<String>The name of the entity.
description: Option<String>The description of the entity.
components: Option<HashMap<String, ComponentRequest>>An object that maps strings to the components in the entity. Each string in the mapping must be unique to this object.
composite_components: Option<HashMap<String, CompositeComponentRequest>>This is an object that maps strings to compositeComponent updates in the request. Each key of the map represents the componentPath of the compositeComponent.
parent_entity_id: Option<String>The ID of the entity's parent entity.
Metadata that you can use to manage the entity.
Implementations§
source§impl CreateEntityInput
impl CreateEntityInput
sourcepub fn workspace_id(&self) -> Option<&str>
pub fn workspace_id(&self) -> Option<&str>
The ID of the workspace that contains the entity.
sourcepub fn entity_name(&self) -> Option<&str>
pub fn entity_name(&self) -> Option<&str>
The name of the entity.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the entity.
sourcepub fn components(&self) -> Option<&HashMap<String, ComponentRequest>>
pub fn components(&self) -> Option<&HashMap<String, ComponentRequest>>
An object that maps strings to the components in the entity. Each string in the mapping must be unique to this object.
sourcepub fn composite_components(
&self
) -> Option<&HashMap<String, CompositeComponentRequest>>
pub fn composite_components( &self ) -> Option<&HashMap<String, CompositeComponentRequest>>
This is an object that maps strings to compositeComponent updates in the request. Each key of the map represents the componentPath of the compositeComponent.
sourcepub fn parent_entity_id(&self) -> Option<&str>
pub fn parent_entity_id(&self) -> Option<&str>
The ID of the entity's parent entity.
Metadata that you can use to manage the entity.
source§impl CreateEntityInput
impl CreateEntityInput
sourcepub fn builder() -> CreateEntityInputBuilder
pub fn builder() -> CreateEntityInputBuilder
Creates a new builder-style object to manufacture CreateEntityInput.
Trait Implementations§
source§impl Clone for CreateEntityInput
impl Clone for CreateEntityInput
source§fn clone(&self) -> CreateEntityInput
fn clone(&self) -> CreateEntityInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateEntityInput
impl Debug for CreateEntityInput
source§impl PartialEq for CreateEntityInput
impl PartialEq for CreateEntityInput
source§fn eq(&self, other: &CreateEntityInput) -> bool
fn eq(&self, other: &CreateEntityInput) -> bool
self and other values to be equal, and is used
by ==.