pub async fn create_entity(
entity_type: EntityType,
name: &str,
four_words: [&str; 4],
description: Option<String>,
settings: Option<EntitySettings>,
) -> Result<EntityHandle>Expand description
Create a new entity (Individual, Group, Channel, Project, Organization)
§Arguments
entity_type- Type of entity to createname- Human-readable name for the entityfour_words- Four-word address for the entitydescription- Optional descriptionsettings- Optional custom settings
§Returns
EntityHandle- Handle to the created entity
§Example
let handle = create_entity(
EntityType::Individual,
"Alice",
["eagle", "forest", "river", "mountain"],
Some("Alice's personal entity"),
None,
).await?;