pub struct CheckIn {
pub rid: i64,
pub hash: String,
pub timestamp: String,
pub user: String,
pub comment: String,
pub parents: Vec<String>,
pub branch: Option<String>,
}Expand description
A check-in (commit) in the repository.
Represents a single point in the repository’s history, containing metadata about who made the change, when, and why.
§Example
use heroforge::Repository;
let repo = Repository::open("project.fossil")?;
let checkin = repo.trunk_tip()?;
println!("Hash: {}", checkin.hash);
println!("User: {}", checkin.user);
println!("Date: {}", checkin.timestamp);
println!("Comment: {}", checkin.comment);
for parent in &checkin.parents {
println!("Parent: {}", parent);
}Fields§
§rid: i64Internal row ID in the database
hash: StringSHA3-256 hash of the check-in manifest
timestamp: StringISO 8601 timestamp (e.g., “2024-01-15T10:30:00”)
user: StringUsername who created the check-in
comment: StringCommit message
parents: Vec<String>Parent check-in hashes (usually one, can be multiple for merges)
branch: Option<String>Branch name (if available)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CheckIn
impl RefUnwindSafe for CheckIn
impl Send for CheckIn
impl Sync for CheckIn
impl Unpin for CheckIn
impl UnwindSafe for CheckIn
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)