pub struct CreateFileRequest<'a> {
pub uri: &'a str,
pub type: CreateFileType,
pub metadata: Option<HashMap<String, String>>,
pub err_on_conflict: Option<bool>,
}Expand description
Create file or folder request
Fields§
§uri: &'a strPath or URI of the item to create (converted to URI format internally)
type: CreateFileTypeWhether to create a file or a folder
metadata: Option<HashMap<String, String>>§err_on_conflict: Option<bool>Fail on a name clash instead of returning the existing item
Trait Implementations§
Source§impl<'a> Clone for CreateFileRequest<'a>
impl<'a> Clone for CreateFileRequest<'a>
Source§fn clone(&self) -> CreateFileRequest<'a>
fn clone(&self) -> CreateFileRequest<'a>
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<'a> Debug for CreateFileRequest<'a>
impl<'a> Debug for CreateFileRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreateFileRequest<'a>
impl<'a> RefUnwindSafe for CreateFileRequest<'a>
impl<'a> Send for CreateFileRequest<'a>
impl<'a> Sync for CreateFileRequest<'a>
impl<'a> Unpin for CreateFileRequest<'a>
impl<'a> UnsafeUnpin for CreateFileRequest<'a>
impl<'a> UnwindSafe for CreateFileRequest<'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