Skip to main content

Porcelain

Trait Porcelain 

Source
pub trait Porcelain: Sized {
    // Required method
    fn porcelain_if(self, value: bool) -> Self;

    // Provided method
    fn porcelain(self) -> Self { ... }
}
Expand description

Trait for git command builders that support porcelain output.

Provides the porcelain and porcelain_if methods to set --porcelain.

Required Methods§

Source

fn porcelain_if(self, value: bool) -> Self

Conditionally enable porcelain output (--porcelain).

Provided Methods§

Source

fn porcelain(self) -> Self

Enable porcelain output (--porcelain).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> Porcelain for Commit<'a>

Source§

impl<'a> Porcelain for Fetch<'a>

Source§

impl<'a> Porcelain for Push<'a>

Source§

impl<'a> Porcelain for Status<'a>

Source§

impl<'a> Porcelain for List<'a>