pub enum Command {
Show 28 variants
WorkspaceUsage,
Stat {
path: VirtualPath,
options: StatOptions,
},
Exists {
path: VirtualPath,
options: StatOptions,
},
ReadDir {
path: VirtualPath,
page: PageRequest,
},
Tree {
path: VirtualPath,
options: TreeOptions,
page: PageRequest,
},
Mkdir {
path: VirtualPath,
options: CreateOptions,
},
Read {
path: VirtualPath,
options: ReadOptions,
},
Write {
path: VirtualPath,
bytes: Vec<u8>,
options: WriteOptions,
},
WriteAt {
path: VirtualPath,
offset: u64,
bytes: Vec<u8>,
options: WriteOptions,
},
Append {
path: VirtualPath,
bytes: Vec<u8>,
options: WriteOptions,
},
Truncate {
path: VirtualPath,
length: u64,
options: MutationOptions,
},
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,
},
ReadLink {
path: VirtualPath,
},
Trash {
path: VirtualPath,
options: MutationOptions,
},
ListTrash {
page: PageRequest,
},
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,
},
Glob {
pattern: String,
page: PageRequest,
},
Find {
query: FindQuery,
page: PageRequest,
},
SearchContent {
query: ContentQuery,
page: PageRequest,
},
Changes {
after: Option<ChangeCursor>,
page: PageRequest,
},
Batch(Vec<BatchOperation>),
}Expand description
One typed filesystem operation, serializable for local execution,
remote transport, or storage as a batch --file script.
Variants§
WorkspaceUsage
Stat
Exists
ReadDir
Tree
Mkdir
Read
Write
WriteAt
Append
Truncate
Touch
Copy
Move
Remove
Symlink
ReadLink
Fields
§
path: VirtualPathTrash
ListTrash
Fields
§
page: PageRequestRestore
Purge
SetAttribute
RemoveAttribute
Glob
Find
SearchContent
Changes
Batch(Vec<BatchOperation>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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