pub trait CodemodResult {
// Required methods
fn context(&self) -> Value;
fn value(&self) -> Option<u32>;
fn target_branch_url(&self) -> Option<Url>;
fn description(&self) -> Option<String>;
fn tags(&self) -> Vec<(String, Option<RevisionId>)>;
// Provided method
fn tera_context(&self) -> Context { ... }
}Expand description
The result of a codemod
Required Methods§
Sourcefn target_branch_url(&self) -> Option<Url>
fn target_branch_url(&self) -> Option<Url>
Returns the URL of the target branch
Sourcefn description(&self) -> Option<String>
fn description(&self) -> Option<String>
Returns the description of the result
Returns the tags of the result
Provided Methods§
Sourcefn tera_context(&self) -> Context
fn tera_context(&self) -> Context
Returns the context as a Tera context