[][src]Struct git_global::Report

pub struct Report { /* fields omitted */ }

A report containing the results of a git-global subcommand.

Contains overall messages and per-repo messages.

Methods

impl Report[src]

pub fn new(repos: &Vec<Repo>) -> Report[src]

Create a new Report for the given Repos..

pub fn pad_repo_output(&mut self)[src]

Declares the desire to separate output when showing per-repo messages.

Sets flag that indicates a blank line should be inserted between messages for different repos when printing per-repo output.

pub fn add_message(&mut self, message: String)[src]

Adds a message that applies to the overall operation.

pub fn add_repo_message(&mut self, repo: &Repo, data_line: String)[src]

Adds a message that applies to the given repo.

pub fn print<W: Write>(&self, writer: &mut W)[src]

Writes all result messages to the given writer, as text.

pub fn print_json<W: Write>(&self, writer: &mut W)[src]

Writes all result messages to the given writer, as JSON.

Auto Trait Implementations

impl Send for Report

impl Sync for Report

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]