pub struct PatchResult {
pub file: String,
pub symbol: String,
pub kind: String,
pub spans: Vec<SpanResult>,
pub before_hash: String,
pub after_hash: String,
pub lines_added: usize,
pub lines_removed: usize,
}Expand description
Single file patch operation result.
Fields§
§file: StringFile that was patched
symbol: StringSymbol name that was patched
kind: StringSymbol kind (function, struct, etc.)
spans: Vec<SpanResult>Spans that were modified
before_hash: StringFile hash before patching
after_hash: StringFile hash after patching
lines_added: usizeNumber of lines added
lines_removed: usizeNumber of lines removed
Trait Implementations§
Source§impl Clone for PatchResult
impl Clone for PatchResult
Source§fn clone(&self) -> PatchResult
fn clone(&self) -> PatchResult
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 moreSource§impl Debug for PatchResult
impl Debug for PatchResult
Source§impl<'de> Deserialize<'de> for PatchResult
impl<'de> Deserialize<'de> for PatchResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PatchResult
impl RefUnwindSafe for PatchResult
impl Send for PatchResult
impl Sync for PatchResult
impl Unpin for PatchResult
impl UnsafeUnpin for PatchResult
impl UnwindSafe for PatchResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more