Struct cloud_filter::root::SyncRootInfo

source ·
pub struct SyncRootInfo(/* private fields */);

Implementations§

source§

impl SyncRootInfo

source

pub fn allow_pinning(&self) -> bool

Enables or disables the ability for files to be made available offline.

source

pub fn set_allow_pinning(&mut self, allow_pinning: bool)

Sets the ability for files to be made available offline.

source

pub fn with_allow_pinning(self, allow_pinning: bool) -> Self

Sets the ability for files to be made available offline.

Hard links are allowed on a placeholder within the same sync root.

Sets the hard link are allowed on a placeholder within the same sync root.

Sets the hard link are allowed on a placeholder within the same sync root.

source

pub fn display_name(&self) -> OsString

An optional display name that maps to the existing sync root registration.

source

pub fn set_display_name(&mut self, display_name: impl AsRef<OsStr>)

Sets the display name that maps to the existing sync root registration.

source

pub fn with_display_name(self, display_name: impl AsRef<OsStr>) -> Self

Sets the display name that maps to the existing sync root registration.

source

pub fn recycle_bin_uri(&self) -> Option<OsString>

A Uri to a cloud storage recycle bin.

source

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.

source

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.

source

pub fn show_siblings_as_group(&self) -> bool

Shows sibling sync roots listed under the main sync root in the File Explorer.

source

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.

source

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.

source

pub fn path(&self) -> PathBuf

The path of the sync root.

source

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.

source

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.

source

pub fn population_type(&self) -> PopulationType

The population policy of the sync root registration.

source

pub fn set_population_type(&mut self, population_type: PopulationType)

Sets the population policy of the sync root registration.

source

pub fn with_population_type(self, population_type: PopulationType) -> Self

Sets the population policy of the sync root registration.

source

pub fn version(&self) -> OsString

The version number of the sync root provider.

source

pub fn set_version(&mut self, version: impl AsRef<OsStr>)

Sets the version number of the sync root provider.

source

pub fn with_version(self, version: impl AsRef<OsStr>) -> Self

Sets the version number of the sync root provider.

source

pub fn protection_mode(&self) -> ProtectionMode

The protection mode of the sync root registration.

source

pub fn set_protection_mode(&mut self, protection_mode: ProtectionMode)

Sets the protection mode of the sync root registration.

source

pub fn with_protection_mode(self, protection_mode: ProtectionMode) -> Self

Sets the protection mode of the sync root registration.

source

pub fn supported_attribute(&self) -> FlagSet<SupportedAttribute>

The supported attributes of the sync root registration.

source

pub fn set_supported_attribute( &mut self, supported_attribute: impl Into<FlagSet<SupportedAttribute>>, )

Sets the supported attributes of the sync root registration.

source

pub fn with_supported_attribute( self, supported_attribute: impl Into<FlagSet<SupportedAttribute>>, ) -> Self

Sets the supported attributes of the sync root registration.

source

pub fn hydration_type(&self) -> HydrationType

The hydration policy of the sync root registration.

source

pub fn set_hydration_type(&mut self, hydration_type: HydrationType)

Sets the hydration policy of the sync root registration.

source

pub fn with_hydration_type(self, hydration_type: HydrationType) -> Self

Sets the hydration policy of the sync root registration.

source

pub fn hydration_policy(&self) -> FlagSet<HydrationPolicy>

The hydration policy of the sync root registration.

source

pub fn set_hydration_policy( &mut self, hydration_policy: impl Into<FlagSet<HydrationPolicy>>, )

Sets the hydration policy of the sync root registration.

source

pub fn with_hydration_policy( self, hydration_policy: impl Into<FlagSet<HydrationPolicy>>, ) -> Self

Sets the hydration policy of the sync root registration.

source

pub fn icon(&self) -> OsString

The icon of the sync root registration.

source

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.

source

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.

source

pub fn id(&self) -> SyncRootId

The identifier of the sync root registration.

source

pub fn blob(&self) -> Vec<u8>

The blob of the sync root registration.

source

pub fn set_blob(&mut self, blob: &[u8])

Sets the blob of the sync root registration.

source

pub fn with_blob(self, blob: &[u8]) -> Self

Sets the blob of the sync root registration.

Trait Implementations§

source§

impl Clone for SyncRootInfo

source§

fn clone(&self) -> SyncRootInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SyncRootInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for SyncRootInfo

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.