| 66 | } |
| 67 | |
| 68 | pub trait MigrationTarget: std::fmt::Debug { |
| 69 | fn name(&self) -> &'static str; |
| 70 | fn path(&self) -> &Path; |
| 71 | |
| 72 | fn detect_version(&self, content: &str) -> Result<Option<ConfigVersion>, TargetError>; |
| 73 | |
| 74 | fn migrate( |
| 75 | &self, |
| 76 | content: &str, |
| 77 | from: &ConfigVersion, |
| 78 | to: &ConfigVersion, |
| 79 | resolver: &mut dyn AmbiguityResolver, |
| 80 | ) -> Result<TargetMigrationOutput, TargetError>; |
| 81 | |
| 82 | fn validate(&self, content: &str) -> Result<(), TargetError>; |
| 83 | } |
nothing calls this directly
no outgoing calls
no test coverage detected