pub struct PutFileOptions {
pub behavior: DestinationBehavior,
pub commit_id: Option<CommitId>,
pub message: Option<String>,
pub expected_revision_no: Option<RevisionNo>,
}Expand description
Options for writing a file path.
Fields§
§behavior: DestinationBehaviorCreate-only or replace-existing behavior.
commit_id: Option<CommitId>Idempotency key for the commit; retrying with the same id replays the landed commit instead of double-committing. A fresh id is generated when absent.
message: Option<String>Annotation recorded on the commit; part of the commit’s identity, so
the same commit_id with a different message is a
commit_id_reuse_conflict.
expected_revision_no: Option<RevisionNo>Replace only while the file’s current revision is still this one.
Requires Replace behavior; a raced write fails instead of stacking a
revision on state the caller never saw.
Trait Implementations§
Source§impl Clone for PutFileOptions
impl Clone for PutFileOptions
Source§fn clone(&self) -> PutFileOptions
fn clone(&self) -> PutFileOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PutFileOptions
impl Debug for PutFileOptions
Source§impl Default for PutFileOptions
impl Default for PutFileOptions
impl Eq for PutFileOptions
Source§impl PartialEq for PutFileOptions
impl PartialEq for PutFileOptions
impl StructuralPartialEq for PutFileOptions
Auto Trait Implementations§
impl Freeze for PutFileOptions
impl RefUnwindSafe for PutFileOptions
impl Send for PutFileOptions
impl Sync for PutFileOptions
impl Unpin for PutFileOptions
impl UnsafeUnpin for PutFileOptions
impl UnwindSafe for PutFileOptions
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