Skip to main content

CodemodResult

Trait CodemodResult 

Source
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§

Source

fn context(&self) -> Value

Context

Source

fn value(&self) -> Option<u32>

Returns the value of the result

Source

fn target_branch_url(&self) -> Option<Url>

Returns the URL of the target branch

Source

fn description(&self) -> Option<String>

Returns the description of the result

Source

fn tags(&self) -> Vec<(String, Option<RevisionId>)>

Returns the tags of the result

Provided Methods§

Source

fn tera_context(&self) -> Context

Returns the context as a Tera context

Implementors§

Source§

impl CodemodResult for silver_platter::codemod::CommandResult

Source§

impl CodemodResult for silver_platter::debian::codemod::CommandResult