pub struct CommitOptions {
pub seal: SealOptions,
pub message: String,
pub parent_cid: Option<CommitCid>,
pub allow_data_loss: bool,
pub foreign_parent: bool,
}Expand description
Options for commit operation
Fields§
§seal: SealOptionsSeal options (snapshot settings)
message: StringCommit message
parent_cid: Option<CommitCid>Parent commit CID (None for initial commit)
allow_data_loss: boolAllow commits that would delete a large percentage of files. Without this flag, commits that delete >50% of files (when parent has >10 files) are blocked.
foreign_parent: boolParent is from a foreign repo (e.g., fork source). Skips parent decryption for change detection and shard key re-wrapping. The parent CID is still recorded in the commit for provenance.
Trait Implementations§
Source§impl Clone for CommitOptions
impl Clone for CommitOptions
Source§fn clone(&self) -> CommitOptions
fn clone(&self) -> CommitOptions
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 moreAuto Trait Implementations§
impl Freeze for CommitOptions
impl RefUnwindSafe for CommitOptions
impl Send for CommitOptions
impl Sync for CommitOptions
impl Unpin for CommitOptions
impl UnsafeUnpin for CommitOptions
impl UnwindSafe for CommitOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more