Trait MakeSuggestions

Source
pub trait MakeSuggestions {
    // Required methods
    fn get_suggestion_help(&self, start_line: u32, end_line: u32) -> String;
    fn get_tool_name(&self) -> String;

    // Provided method
    fn get_suggestions(
        &self,
        review_comments: &mut ReviewComments,
        file_obj: &FileObj,
        patch: &mut Patch<'_>,
        summary_only: bool,
    ) -> Result<()> { ... }
}

Required Methods§

Source

fn get_suggestion_help(&self, start_line: u32, end_line: u32) -> String

Create some user-facing helpful info about what the suggestion aims to resolve.

Source

fn get_tool_name(&self) -> String

Get the tool’s name which generated the advice.

Provided Methods§

Source

fn get_suggestions( &self, review_comments: &mut ReviewComments, file_obj: &FileObj, patch: &mut Patch<'_>, summary_only: bool, ) -> Result<()>

Create a bunch of suggestions from a FileObj’s advice’s generated patched buffer.

Implementors§