Skip to main content

reifydb_core/interface/catalog/
source.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2025 ReifyDB
3
4use serde::{Deserialize, Serialize};
5
6use crate::interface::catalog::{
7	flow::FlowStatus,
8	id::{NamespaceId, SourceId},
9};
10
11#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
12pub struct Source {
13	pub id: SourceId,
14	pub namespace: NamespaceId,
15	pub name: String,
16	pub connector: String,
17	pub config: Vec<(String, String)>,
18	pub target_namespace: NamespaceId,
19	pub target_name: String,
20	pub status: FlowStatus,
21}