pub struct PutFileOptions {
pub behavior: DestinationBehavior,
pub commit: CommitOptions,
pub expected_revision_no: Option<RevisionNo>,
}Expand description
Options for writing a file path.
Fields§
§behavior: DestinationBehaviorCreate-only or replace-existing behavior.
commit: CommitOptionsActor, commit ID, and message.
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.
Implementations§
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
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