Struct cloud_filter::root::SyncRootInfo
source · pub struct SyncRootInfo(/* private fields */);
Implementations§
source§impl SyncRootInfo
impl SyncRootInfo
sourcepub fn allow_pinning(&self) -> bool
pub fn allow_pinning(&self) -> bool
Enables or disables the ability for files to be made available offline.
sourcepub fn set_allow_pinning(&mut self, allow_pinning: bool)
pub fn set_allow_pinning(&mut self, allow_pinning: bool)
Sets the ability for files to be made available offline.
sourcepub fn with_allow_pinning(self, allow_pinning: bool) -> Self
pub fn with_allow_pinning(self, allow_pinning: bool) -> Self
Sets the ability for files to be made available offline.
sourcepub fn allow_hardlinks(&self) -> bool
pub fn allow_hardlinks(&self) -> bool
Hard links are allowed on a placeholder within the same sync root.
sourcepub fn set_allow_hardlinks(&mut self, allow_hardlinks: bool)
pub fn set_allow_hardlinks(&mut self, allow_hardlinks: bool)
Sets the hard link are allowed on a placeholder within the same sync root.
sourcepub fn with_allow_hardlinks(self, allow_hardlinks: bool) -> Self
pub fn with_allow_hardlinks(self, allow_hardlinks: bool) -> Self
Sets the hard link are allowed on a placeholder within the same sync root.
sourcepub fn display_name(&self) -> OsString
pub fn display_name(&self) -> OsString
An optional display name that maps to the existing sync root registration.
sourcepub fn set_display_name(&mut self, display_name: impl AsRef<OsStr>)
pub fn set_display_name(&mut self, display_name: impl AsRef<OsStr>)
Sets the display name that maps to the existing sync root registration.
sourcepub fn with_display_name(self, display_name: impl AsRef<OsStr>) -> Self
pub fn with_display_name(self, display_name: impl AsRef<OsStr>) -> Self
Sets the display name that maps to the existing sync root registration.
sourcepub fn recycle_bin_uri(&self) -> Option<OsString>
pub fn recycle_bin_uri(&self) -> Option<OsString>
A Uri to a cloud storage recycle bin.
sourcepub fn set_recycle_bin_uri(
&mut self,
recycle_bin_uri: impl AsRef<OsStr>,
) -> Result<()>
pub fn set_recycle_bin_uri( &mut self, recycle_bin_uri: impl AsRef<OsStr>, ) -> Result<()>
Sets the Uri to a cloud storage recycle bin.
Returns an error if the Uri is not valid.
sourcepub fn with_recycle_bin_uri(
self,
recycle_bin_uri: impl AsRef<OsStr>,
) -> Result<Self>
pub fn with_recycle_bin_uri( self, recycle_bin_uri: impl AsRef<OsStr>, ) -> Result<Self>
Sets the Uri to a cloud storage recycle bin.
Returns an error if the Uri is not valid.
sourcepub fn show_siblings_as_group(&self) -> bool
pub fn show_siblings_as_group(&self) -> bool
Shows sibling sync roots listed under the main sync root in the File Explorer.
sourcepub fn set_show_siblings_as_group(&mut self, show_siblings_as_group: bool)
pub fn set_show_siblings_as_group(&mut self, show_siblings_as_group: bool)
Shows sibling sync roots listed under the main sync root in the File Explorer or not.
sourcepub fn with_show_siblings_as_group(self, show_siblings_as_group: bool) -> Self
pub fn with_show_siblings_as_group(self, show_siblings_as_group: bool) -> Self
Shows sibling sync roots listed under the main sync root in the File Explorer or not.
sourcepub fn set_path(&mut self, path: impl AsRef<Path>) -> Result<()>
pub fn set_path(&mut self, path: impl AsRef<Path>) -> Result<()>
Sets the path of the sync root.
Returns an error if the path is not a folder.
sourcepub fn with_path(self, path: impl AsRef<Path>) -> Result<Self>
pub fn with_path(self, path: impl AsRef<Path>) -> Result<Self>
Sets the path of the sync root.
Returns an error if the path is not a folder.
sourcepub fn population_type(&self) -> PopulationType
pub fn population_type(&self) -> PopulationType
The population policy of the sync root registration.
sourcepub fn set_population_type(&mut self, population_type: PopulationType)
pub fn set_population_type(&mut self, population_type: PopulationType)
Sets the population policy of the sync root registration.
sourcepub fn with_population_type(self, population_type: PopulationType) -> Self
pub fn with_population_type(self, population_type: PopulationType) -> Self
Sets the population policy of the sync root registration.
sourcepub fn set_version(&mut self, version: impl AsRef<OsStr>)
pub fn set_version(&mut self, version: impl AsRef<OsStr>)
Sets the version number of the sync root provider.
sourcepub fn with_version(self, version: impl AsRef<OsStr>) -> Self
pub fn with_version(self, version: impl AsRef<OsStr>) -> Self
Sets the version number of the sync root provider.
sourcepub fn protection_mode(&self) -> ProtectionMode
pub fn protection_mode(&self) -> ProtectionMode
The protection mode of the sync root registration.
sourcepub fn set_protection_mode(&mut self, protection_mode: ProtectionMode)
pub fn set_protection_mode(&mut self, protection_mode: ProtectionMode)
Sets the protection mode of the sync root registration.
sourcepub fn with_protection_mode(self, protection_mode: ProtectionMode) -> Self
pub fn with_protection_mode(self, protection_mode: ProtectionMode) -> Self
Sets the protection mode of the sync root registration.
sourcepub fn supported_attribute(&self) -> FlagSet<SupportedAttribute>
pub fn supported_attribute(&self) -> FlagSet<SupportedAttribute>
The supported attributes of the sync root registration.
sourcepub fn set_supported_attribute(
&mut self,
supported_attribute: impl Into<FlagSet<SupportedAttribute>>,
)
pub fn set_supported_attribute( &mut self, supported_attribute: impl Into<FlagSet<SupportedAttribute>>, )
Sets the supported attributes of the sync root registration.
sourcepub fn with_supported_attribute(
self,
supported_attribute: impl Into<FlagSet<SupportedAttribute>>,
) -> Self
pub fn with_supported_attribute( self, supported_attribute: impl Into<FlagSet<SupportedAttribute>>, ) -> Self
Sets the supported attributes of the sync root registration.
sourcepub fn hydration_type(&self) -> HydrationType
pub fn hydration_type(&self) -> HydrationType
The hydration policy of the sync root registration.
sourcepub fn set_hydration_type(&mut self, hydration_type: HydrationType)
pub fn set_hydration_type(&mut self, hydration_type: HydrationType)
Sets the hydration policy of the sync root registration.
sourcepub fn with_hydration_type(self, hydration_type: HydrationType) -> Self
pub fn with_hydration_type(self, hydration_type: HydrationType) -> Self
Sets the hydration policy of the sync root registration.
sourcepub fn hydration_policy(&self) -> FlagSet<HydrationPolicy>
pub fn hydration_policy(&self) -> FlagSet<HydrationPolicy>
The hydration policy of the sync root registration.
sourcepub fn set_hydration_policy(
&mut self,
hydration_policy: impl Into<FlagSet<HydrationPolicy>>,
)
pub fn set_hydration_policy( &mut self, hydration_policy: impl Into<FlagSet<HydrationPolicy>>, )
Sets the hydration policy of the sync root registration.
sourcepub fn with_hydration_policy(
self,
hydration_policy: impl Into<FlagSet<HydrationPolicy>>,
) -> Self
pub fn with_hydration_policy( self, hydration_policy: impl Into<FlagSet<HydrationPolicy>>, ) -> Self
Sets the hydration policy of the sync root registration.
sourcepub fn set_icon(&mut self, icon: impl AsRef<OsStr>)
pub fn set_icon(&mut self, icon: impl AsRef<OsStr>)
Sets the icon of the sync root registration.
See also https://docs.microsoft.com/en-us/windows/win32/menurc/icon-resource.
sourcepub fn with_icon(self, icon: impl AsRef<OsStr>) -> Self
pub fn with_icon(self, icon: impl AsRef<OsStr>) -> Self
Sets the icon of the sync root registration.
See also https://docs.microsoft.com/en-us/windows/win32/menurc/icon-resource.
sourcepub fn id(&self) -> SyncRootId
pub fn id(&self) -> SyncRootId
The identifier of the sync root registration.
Trait Implementations§
source§impl Clone for SyncRootInfo
impl Clone for SyncRootInfo
source§fn clone(&self) -> SyncRootInfo
fn clone(&self) -> SyncRootInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SyncRootInfo
impl Debug for SyncRootInfo
Auto Trait Implementations§
impl Freeze for SyncRootInfo
impl RefUnwindSafe for SyncRootInfo
impl Send for SyncRootInfo
impl Sync for SyncRootInfo
impl Unpin for SyncRootInfo
impl UnwindSafe for SyncRootInfo
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
)