Struct cloud_filter::placeholder::ConvertOptions
source · 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 moresource§impl Debug for ConvertOptions
impl Debug for ConvertOptions
Auto Trait Implementations§
impl Freeze for ConvertOptions
impl RefUnwindSafe for ConvertOptions
impl Send for ConvertOptions
impl Sync for ConvertOptions
impl Unpin for ConvertOptions
impl UnwindSafe for ConvertOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)