pub struct Commit {
pub blobs: Vec<Cid>,
pub blocks: Vec<u8>,
pub commit: Cid,
pub ops: Vec<RepoOp>,
pub prev_data: Option<Cid>,
pub rebase: bool,
pub repo: String,
pub rev: String,
pub seq: i64,
pub since: Option<String>,
pub time: String,
pub too_big: bool,
}Expand description
Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature.
Fields§
§blobs: Vec<Cid>§blocks: Vec<u8>§commit: Cid§ops: Vec<RepoOp>§prev_data: Option<Cid>§rebase: bool§repo: String§rev: String§seq: i64§since: Option<String>§time: String§too_big: boolTrait 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