pub enum BatchOperation {
Mkdir {
path: VirtualPath,
options: CreateOptions,
},
Touch {
path: VirtualPath,
options: TouchOptions,
},
Copy {
from: VirtualPath,
to: VirtualPath,
options: CopyOptions,
},
Move {
from: VirtualPath,
to: VirtualPath,
options: MoveOptions,
},
Remove {
path: VirtualPath,
options: RemoveOptions,
},
Symlink {
target: LinkTarget,
link: VirtualPath,
options: CreateOptions,
},
Trash {
path: VirtualPath,
options: MutationOptions,
},
Restore {
trash: TrashId,
destination: Option<VirtualPath>,
options: MutationOptions,
},
Purge {
trash: TrashId,
},
SetAttribute {
path: VirtualPath,
key: String,
value: Vec<u8>,
options: MutationOptions,
},
RemoveAttribute {
path: VirtualPath,
key: String,
options: MutationOptions,
},
}Expand description
A metadata or namespace operation that may participate in an atomic batch.
Batches never carry file bytes, staged-content identifiers, or upload
handles. Content-changing file operations (write, write_at, append,
and truncate) remain separate atomic filesystem calls.
Variants§
Mkdir
Creates a directory.
Touch
Touches or creates a regular file.
Copy
Copies a node.
Fields
from: VirtualPathThe source path.
to: VirtualPathThe destination path.
options: CopyOptionsCopy controls.
Move
Moves a node.
Fields
from: VirtualPathThe source path.
to: VirtualPathThe destination path.
options: MoveOptionsMove controls.
Remove
Permanently removes a node.
Symlink
Creates a symbolic link.
Fields
target: LinkTargetThe normalized relative or absolute virtual target.
link: VirtualPathThe new link path.
options: CreateOptionsLink creation controls.
Trash
Moves a node into recoverable trash.
Restore
Restores a recoverable trash record.
Fields
destination: Option<VirtualPath>An alternate destination, or the original path when absent.
options: MutationOptionsOptimistic mutation controls.
Purge
Permanently purges a trash record.
SetAttribute
Sets a custom node attribute.
RemoveAttribute
Removes a custom node attribute.
Trait Implementations§
Source§impl Clone for BatchOperation
impl Clone for BatchOperation
Source§fn clone(&self) -> BatchOperation
fn clone(&self) -> BatchOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more