pub struct CommitBody {
pub parents: Vec<ObjectId>,
pub manifest: ObjectId,
pub message: String,
pub timestamp_unix: i64,
pub author: Option<Author>,
}Expand description
The on-disk, serialized form of a commit (without its self-referential id).
Fields§
§parents: Vec<ObjectId>§manifest: ObjectId§message: String§timestamp_unix: i64Author; #[serde(default)] keeps old author-less commits readable.
Trait Implementations§
Source§impl Clone for CommitBody
impl Clone for CommitBody
Source§fn clone(&self) -> CommitBody
fn clone(&self) -> CommitBody
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 CommitBody
impl Debug for CommitBody
Source§impl<'de> Deserialize<'de> for CommitBody
impl<'de> Deserialize<'de> for CommitBody
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 CommitBody
impl RefUnwindSafe for CommitBody
impl Send for CommitBody
impl Sync for CommitBody
impl Unpin for CommitBody
impl UnsafeUnpin for CommitBody
impl UnwindSafe for CommitBody
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