pub struct EditText {
pub path: String,
pub anchor_id: String,
pub old_span_hash: [u8; 32],
pub replacement: String,
}Expand description
Text edit payload using content-anchor identity.
Fields§
§path: StringRepo-relative UTF-8 path.
anchor_id: StringStable content-anchor identifier.
This is a logical span identity, not a byte or line offset. Presentation offsets may be derived by later layers, but they are never part of the patch precondition identity.
old_span_hash: [u8; 32]Old content hash precondition for the edited span.
replacement: StringReplacement text.
Implementations§
Trait Implementations§
Source§impl CanonicalEncode for EditText
impl CanonicalEncode for EditText
Source§fn encode_canonical(&self, writer: &mut CanonicalWriter) -> Result<()>
fn encode_canonical(&self, writer: &mut CanonicalWriter) -> Result<()>
Encode this value into canonical bytes.
impl Eq for EditText
impl StructuralPartialEq for EditText
Auto Trait Implementations§
impl Freeze for EditText
impl RefUnwindSafe for EditText
impl Send for EditText
impl Sync for EditText
impl Unpin for EditText
impl UnsafeUnpin for EditText
impl UnwindSafe for EditText
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