pub struct SourceFixOutcome {
pub fixed_source: String,
pub applied: usize,
pub failed: usize,
}Expand description
Outcome of applying fixes to a single YAML source string.
Fields§
§fixed_source: StringThe (possibly) rewritten source. Equal to the input when nothing applied (no safe fixes, all conflicts, or an unparseable document).
applied: usizeNumber of safe fixes that applied cleanly.
failed: usizeNumber of safe fixes that could not be applied (patch conflicts or an unparseable document).
Trait Implementations§
Source§impl Clone for SourceFixOutcome
impl Clone for SourceFixOutcome
Source§fn clone(&self) -> SourceFixOutcome
fn clone(&self) -> SourceFixOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SourceFixOutcome
impl RefUnwindSafe for SourceFixOutcome
impl Send for SourceFixOutcome
impl Sync for SourceFixOutcome
impl Unpin for SourceFixOutcome
impl UnsafeUnpin for SourceFixOutcome
impl UnwindSafe for SourceFixOutcome
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