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 more