pub struct Commit {Show 14 fields
pub id: i64,
pub sha: String,
pub author_id: Option<i64>,
pub author_name: String,
pub author_email: String,
pub timestamp: DateTime<Utc>,
pub message: String,
pub repository: String,
pub files_changed: u32,
pub insertions: u32,
pub deletions: u32,
pub classification_id: Option<i64>,
pub confidence: Option<f64>,
pub is_merge: bool,
}Expand description
A single commit observed in a repository.
Fields§
§id: i64Primary key (database-assigned).
sha: StringFull git OID (hex).
Foreign key into Author.
Author display name as recorded in the commit.
Author email as recorded in the commit.
timestamp: DateTime<Utc>Author timestamp (UTC).
message: StringCommit message body (raw).
repository: StringRepository identifier (path or canonical name).
files_changed: u32Number of files changed.
insertions: u32Lines added.
deletions: u32Lines deleted.
classification_id: Option<i64>Foreign key into Classification, if classified.
confidence: Option<f64>Confidence assigned by the classifier (0.0–1.0).
is_merge: boolTrue for merge commits (parents > 1).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Commit
impl<'de> Deserialize<'de> for Commit
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 Commit
impl RefUnwindSafe for Commit
impl Send for Commit
impl Sync for Commit
impl Unpin for Commit
impl UnsafeUnpin for Commit
impl UnwindSafe for Commit
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