[−][src]Enum yy_boss::cli::input::VfsCommand
The Virtual File System command type to run.
Variants
An instruction to move a Resource from one location to another.
Errors
If the resource_to_move
field is not set to a valid resource, or
if new_parent
is not set to a valid folder, this command aborts and
returns an error.
Fields of MoveResource
An instruction to create a Folder under the specified folder path.
Errors
If the parent_folder
field is not set to a valid folder, or
if folder_name
is not a unique child of parent_folder
, this command aborts and
returns an error.
Fields of CreateFolder
parent_folder: ViewPathLocation
The identity of the Parent to add a folder to.
folder_name: String
The name of the new folder to create.
An instruction to move a Folder from one location to another, along with the resources within it.
Errors
If the folder_to_move
or new_parent
fields are not set to a valid folder,
this command aborts and returns an error. If new_parent
is a folder within folder_to_move
,
this command will abort and return a error.
Fields of MoveFolder
folder: ViewPathLocation
The location of the Resource to move.
new_parent: ViewPathLocation
The new parent of the Resource, which must be a folder.
Deletes a folder.
If the folder is not empty, then the recursive
flag must be passed -- otherwise, this command
will abort.
Fields of RemoveFolder
folder: ViewPathLocation
The location of the Folder to remove.
recursive: bool
If the folder is not empty, and this flag is not set to true, then the command will abort with an error.
Since the YypBoss is modeled as a black box, there is no notion of "force" -- otherwise, this command
is similar to rm -rf
on Unix systems.
Renames a folder.
Fields of RenameFolder
folder: ViewPathLocation
The location of the Folder to rename.
new_name: String
The new name of the Folder.
Returns a [FolderGraph
] for this folder.
Errors
If the ViewPathLocation
provided does not describe a valid Folder, this command aborts and returns an error.
Fields of GetFolder
folder: ViewPathLocation
Returns a [FolderGraph
] for the entire Virtual File System.
Please note, this can result in a fairly massive Json being sent back.
Errors
This command is infallible.
Returns an enum if the given ViewPath links to a Folder or a File.
Errors
If the ViewPath
provided does not describe a valid Item, this command aborts and returns an error.
Fields of GetPathType
path: ViewPath
Trait Implementations
impl Clone for VfsCommand
[src]
pub fn clone(&self) -> VfsCommand
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VfsCommand
[src]
impl<'de> Deserialize<'de> for VfsCommand
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for VfsCommand
[src]
impl PartialEq<VfsCommand> for VfsCommand
[src]
pub fn eq(&self, other: &VfsCommand) -> bool
[src]
pub fn ne(&self, other: &VfsCommand) -> bool
[src]
impl Serialize for VfsCommand
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for VfsCommand
[src]
impl StructuralPartialEq for VfsCommand
[src]
Auto Trait Implementations
impl RefUnwindSafe for VfsCommand
[src]
impl Send for VfsCommand
[src]
impl Sync for VfsCommand
[src]
impl Unpin for VfsCommand
[src]
impl UnwindSafe for VfsCommand
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,