pub struct ApplyEdit {
pub tier: ApplyTier,
pub kind: ApplyKind,
pub source_id: String,
pub file_path: Option<String>,
pub target_id: Option<String>,
pub before: String,
pub after: Option<String>,
pub reason: String,
pub written: bool,
pub span: Option<(usize, usize)>,
}Expand description
One planned or applied edit (or skip record).
Fields§
§tier: ApplyTierDisposition.
kind: ApplyKindEdit kind.
source_id: StringSource node id.
file_path: Option<String>Repo-relative file path when known.
target_id: Option<String>Target node id when known.
before: StringOriginal surface (wiki target, symbol raw, or mention text).
after: Option<String>Replacement text when an edit is planned.
reason: StringHuman-readable reason.
written: boolTrue when this edit was written to disk.
span: Option<(usize, usize)>Byte span in the original file when applicable (start, end).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApplyEdit
impl<'de> Deserialize<'de> for ApplyEdit
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 ApplyEdit
impl RefUnwindSafe for ApplyEdit
impl Send for ApplyEdit
impl Sync for ApplyEdit
impl Unpin for ApplyEdit
impl UnsafeUnpin for ApplyEdit
impl UnwindSafe for ApplyEdit
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