From 66078c9ad27cbe220c58b97dc1739d9c5ca440b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Mon, 11 Mar 2024 13:41:40 +0000 Subject: [PATCH] Remove FlowSyncMode from nexus Unused since we removed option --- nexus/pt/src/flow_model.rs | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/nexus/pt/src/flow_model.rs b/nexus/pt/src/flow_model.rs index 54c4863fad..021af81bbf 100644 --- a/nexus/pt/src/flow_model.rs +++ b/nexus/pt/src/flow_model.rs @@ -11,43 +11,6 @@ pub struct FlowJobTableMapping { pub exclude: Vec, } -#[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Clone)] -pub enum FlowSyncMode { - Avro, - SQL, -} - -impl FlowSyncMode { - pub fn parse_string(s: &str) -> Result { - match s { - "avro" => Ok(FlowSyncMode::Avro), - "sql" => Ok(FlowSyncMode::SQL), - _ => Err(format!("{} is not a valid FlowSyncMode", s)), - } - } -} - -impl std::str::FromStr for FlowSyncMode { - type Err = String; - - fn from_str(s: &str) -> Result { - match s { - "avro" => Ok(FlowSyncMode::Avro), - "default" => Ok(FlowSyncMode::SQL), - _ => Err(format!("{} is not a valid FlowSyncMode", s)), - } - } -} - -impl ToString for FlowSyncMode { - fn to_string(&self) -> String { - match self { - FlowSyncMode::Avro => "avro".to_string(), - FlowSyncMode::SQL => "default".to_string(), - } - } -} - #[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Clone)] pub struct FlowJob { pub name: String,