pub struct CodeGraphUpdate {
pub update_type: UpdateType,
pub node_id: String,
pub body_hash: String,
pub new_body: Option<String>,
pub timestamp_ms: i64,
pub agent: String,
pub rationale: String,
}Expand description
A code graph mutation event, published over NATS.
Fields§
§update_type: UpdateTypeType of mutation.
node_id: StringNode ID that was modified (e.g., rust_fn:crates/foo/src/lib.rs::bar).
body_hash: StringSHA-256 hash of the new body (first 16 hex chars).
new_body: Option<String>New body content. None for deletes.
timestamp_ms: i64Unix timestamp (milliseconds).
agent: StringAgent that made the change.
rationale: StringWhy this change was made.
Trait Implementations§
Source§impl Clone for CodeGraphUpdate
impl Clone for CodeGraphUpdate
Source§fn clone(&self) -> CodeGraphUpdate
fn clone(&self) -> CodeGraphUpdate
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 CodeGraphUpdate
impl Debug for CodeGraphUpdate
Source§impl<'de> Deserialize<'de> for CodeGraphUpdate
impl<'de> Deserialize<'de> for CodeGraphUpdate
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 CodeGraphUpdate
impl RefUnwindSafe for CodeGraphUpdate
impl Send for CodeGraphUpdate
impl Sync for CodeGraphUpdate
impl Unpin for CodeGraphUpdate
impl UnsafeUnpin for CodeGraphUpdate
impl UnwindSafe for CodeGraphUpdate
Blanket Implementations§
impl<T> Allocation for T
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