pub struct ConvertOptions { /* private fields */ }Expand description
File to placeholder file conversion parameters.
Implementations§
Source§impl ConvertOptions
impl ConvertOptions
Sourcepub fn mark_in_sync(self) -> Self
pub fn mark_in_sync(self) -> Self
Marks a placeholder as in sync.
See also SetInSyncState, What does “In-Sync” Mean?
Sourcepub fn dehydrate(self) -> Self
pub fn dehydrate(self) -> Self
Dehydrate the placeholder after conversion.
This flag is only applicable to files.
Sourcepub fn has_children(self) -> Self
pub fn has_children(self) -> Self
Marks the placeholder as “partially full,” such that SyncFilter::fetch_placeholders will be invoked when this directory is next accessed so that the remaining placeholders are inserted.
Only applicable to placeholder directories.
Sourcepub fn block_dehydration(self) -> Self
pub fn block_dehydration(self) -> Self
Blocks this placeholder from being dehydrated.
This flag does not work on directories.
Sourcepub fn force(self) -> Self
pub fn force(self) -> Self
Forces the conversion of a non-cloud placeholder file to a cloud placeholder file.
Placeholder files are built into the NTFS file system and thus, a placeholder not associated with the sync root is possible.
Sourcepub fn blob(self, blob: Vec<u8>) -> Self
pub fn blob(self, blob: Vec<u8>) -> Self
A buffer of bytes stored with the file that could be accessed through a Request::file_blob or Placeholder::info.
The buffer must not exceed 4KiB.
Trait Implementations§
Source§impl Clone for ConvertOptions
impl Clone for ConvertOptions
Source§fn clone(&self) -> ConvertOptions
fn clone(&self) -> ConvertOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more