pub struct EditText {
pub node_id: NodeId,
pub span_id: [u8; 32],
pub old_span_hash: [u8; 32],
pub left_anchor_hash: [u8; 32],
pub right_anchor_hash: [u8; 32],
pub replacement_text: Vec<u8>,
pub presentation_hint_line: Option<u32>,
pub presentation_hint_column: Option<u32>,
pub old_span_text: Vec<u8>,
}Expand description
Text edit payload using content-anchor identity.
Fields§
§node_id: NodeIdNode identity (bytes, 32). EditText is node-addressed, not path-addressed.
span_id: [u8; 32]Content-anchor span identity (bytes, 32; FDD-01 §5.1).
old_span_hash: [u8; 32]SHA-256 of old_span_text; the validator binds the two.
left_anchor_hash: [u8; 32]Bounded left-context hash (bytes, 32).
right_anchor_hash: [u8; 32]Bounded right-context hash (bytes, 32).
replacement_text: Vec<u8>New span bytes (bytes); UTF-8 text for v1, stored verbatim (never NFC).
presentation_hint_line: Option<u32>Optional presentation hint (line); not part of algebraic identity.
presentation_hint_column: Option<u32>Optional presentation hint (column); not part of algebraic identity.
old_span_text: Vec<u8>Old span bytes (bytes); UTF-8 for v1, verbatim; inverse material.
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