pub struct SuggestedEdit {
pub project_key: String,
pub file_path: String,
pub base_sha256: String,
pub lines: [u32; 2],
pub replacement: String,
}Expand description
An edit recall eval apply can make: lines lines of one file,
replaced with replacement, only if the file is still the version the
evaluation read.
Fields§
§project_key: StringThe project.
file_path: StringThe file.
base_sha256: Stringcontent_sha256 of the version the
evaluation read: applying refuses any other.
lines: [u32; 2]The first and last line replaced, counting from 1.
replacement: StringWhat they become; empty removes them. Each line of it ends with a newline, as the lines it replaces did.
Implementations§
Trait Implementations§
Source§impl Clone for SuggestedEdit
impl Clone for SuggestedEdit
Source§impl Debug for SuggestedEdit
impl Debug for SuggestedEdit
Source§impl Default for SuggestedEdit
impl Default for SuggestedEdit
Source§impl<'de> Deserialize<'de> for SuggestedEdit
impl<'de> Deserialize<'de> for SuggestedEdit
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
impl Eq for SuggestedEdit
Source§impl PartialEq for SuggestedEdit
impl PartialEq for SuggestedEdit
Source§impl Serialize for SuggestedEdit
impl Serialize for SuggestedEdit
impl StructuralPartialEq for SuggestedEdit
Auto Trait Implementations§
impl Freeze for SuggestedEdit
impl RefUnwindSafe for SuggestedEdit
impl Send for SuggestedEdit
impl Sync for SuggestedEdit
impl Unpin for SuggestedEdit
impl UnsafeUnpin for SuggestedEdit
impl UnwindSafe for SuggestedEdit
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.