pub struct CreateDirectoryOptions {
pub commit_id: Option<CommitId>,
pub message: Option<String>,
pub parents: bool,
}Expand description
Per-operation options, defined once in loonfs-api and shared with the
embedded loonfs runtime so the two surfaces cannot drift a field apart.
Options for creating a directory.
Fields§
§commit_id: Option<CommitId>Optional idempotency key.
message: Option<String>Annotation recorded on the commit; part of the commit’s identity.
parents: boolAlso create missing ancestor directories, like put_file does.
Trait Implementations§
Source§impl Clone for CreateDirectoryOptions
impl Clone for CreateDirectoryOptions
Source§fn clone(&self) -> CreateDirectoryOptions
fn clone(&self) -> CreateDirectoryOptions
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 Debug for CreateDirectoryOptions
impl Debug for CreateDirectoryOptions
Source§impl Default for CreateDirectoryOptions
impl Default for CreateDirectoryOptions
Source§fn default() -> CreateDirectoryOptions
fn default() -> CreateDirectoryOptions
Returns the “default value” for a type. Read more
impl Eq for CreateDirectoryOptions
Source§impl PartialEq for CreateDirectoryOptions
impl PartialEq for CreateDirectoryOptions
impl StructuralPartialEq for CreateDirectoryOptions
Auto Trait Implementations§
impl Freeze for CreateDirectoryOptions
impl RefUnwindSafe for CreateDirectoryOptions
impl Send for CreateDirectoryOptions
impl Sync for CreateDirectoryOptions
impl Unpin for CreateDirectoryOptions
impl UnsafeUnpin for CreateDirectoryOptions
impl UnwindSafe for CreateDirectoryOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.