Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

570 B
Raw Blame
//! Source entity reference type.

use models_properties::EntityType;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

/// Entity reference for Source property.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SourceEntity {
    /// The type of entity being referenced.
    pub entity_type: EntityType,
    /// The ID of the entity being referenced.
    pub entity_id: String,
    /// For CHANNEL, CHAT, THREAD entity types - optional specific message ID.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub specific_message_id: Option<Uuid>,
}