create_entity

Function create_entity 

Source
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 create
  • name - Human-readable name for the entity
  • four_words - Four-word address for the entity
  • description - Optional description
  • settings - 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?;