pub struct Outcome {
pub content: Vec<u8>,
pub warning: Option<String>,
}Expand description
The result of filtering one file.
Fields§
§content: Vec<u8>The bytes to hand back to git.
warning: Option<String>A message for stderr, if the caller should say something.
Returned rather than printed so the decision stays testable and so
nothing on this path can reach stdout by accident.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more