pub enum Object<'a> {
Folder(Folder<'a>),
File(File<'a>),
}Expand description
A file or a folder on the storage.
Variants§
Implementations§
Source§impl<'a> Object<'a>
impl<'a> Object<'a>
Sourcepub fn move_to(&self, parent: &Folder<'_>) -> Result<()>
pub fn move_to(&self, parent: &Folder<'_>) -> Result<()>
Moves the object to the other folder.
§Errors
Returns an error if an object with the same name already exists in the other folder or if the operation has failed.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Object<'a>
impl<'a> RefUnwindSafe for Object<'a>
impl<'a> !Send for Object<'a>
impl<'a> !Sync for Object<'a>
impl<'a> Unpin for Object<'a>
impl<'a> UnwindSafe for Object<'a>
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