pub struct CoChangeEventInput {
pub commit_sha: String,
pub commit_date: String,
pub files: Vec<String>,
}Expand description
A single commit event for change-coupling analysis.
Supplied by the caller (either from sdivi-pipeline’s git log shell-out
or from a foreign extractor such as the consumer-app VSCode git index reader).
§Examples
use sdivi_core::input::CoChangeEventInput;
let event = CoChangeEventInput {
commit_sha: "abc123".to_string(),
commit_date: "2026-05-01T00:00:00Z".to_string(),
files: vec!["src/a.rs".to_string(), "src/b.rs".to_string()],
};
assert_eq!(event.files.len(), 2);Fields§
§commit_sha: StringGit commit SHA (hex string).
commit_date: StringISO-8601 UTC commit date ("YYYY-MM-DDTHH:MM:SSZ").
files: Vec<String>Canonical NodeIds of files touched by this commit.
Paths are repo-relative, forward-slash separated, no leading ./.
Trait Implementations§
Source§impl Clone for CoChangeEventInput
impl Clone for CoChangeEventInput
Source§fn clone(&self) -> CoChangeEventInput
fn clone(&self) -> CoChangeEventInput
Returns a duplicate of the value. Read more
1.0.0 · 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 CoChangeEventInput
impl Debug for CoChangeEventInput
Source§impl<'de> Deserialize<'de> for CoChangeEventInput
impl<'de> Deserialize<'de> for CoChangeEventInput
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
Source§impl PartialEq for CoChangeEventInput
impl PartialEq for CoChangeEventInput
Source§impl Serialize for CoChangeEventInput
impl Serialize for CoChangeEventInput
impl StructuralPartialEq for CoChangeEventInput
Auto Trait Implementations§
impl Freeze for CoChangeEventInput
impl RefUnwindSafe for CoChangeEventInput
impl Send for CoChangeEventInput
impl Sync for CoChangeEventInput
impl Unpin for CoChangeEventInput
impl UnsafeUnpin for CoChangeEventInput
impl UnwindSafe for CoChangeEventInput
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