MCPcopy Create free account
hub / github.com/clawshell/clawshell / MigrationTarget

Interface MigrationTarget

src/migration/target.rs:68–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68pub 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}

Callers

nothing calls this directly

Implementers 1

mod.rssrc/migration/targets/clawshell_toml/m

Calls

no outgoing calls

Tested by

no test coverage detected