pub enum WatchPathEntry {
Simple(String),
WithConfig {
path: String,
album_id: Option<String>,
album_name: Option<String>,
rules: FolderRules,
},
}Expand description
A watch path entry stored in config.
Older configs may contain plain strings, while newer entries can also store per-folder album targeting metadata.
Variants§
Simple(String)
Legacy, simple watched directory path without specific rules or targets.
WithConfig
Configured watched directory path containing custom sync targets and filters.
Implementations§
Source§impl WatchPathEntry
impl WatchPathEntry
Sourcepub fn album_name(&self) -> Option<&str>
pub fn album_name(&self) -> Option<&str>
Retrieve the target album name, if any.
Sourcepub fn rules(&self) -> FolderRules
pub fn rules(&self) -> FolderRules
Retrieve the folder rules or a default set for simple paths.
Sourcepub fn sync_method(&self) -> FolderSyncMethod
pub fn sync_method(&self) -> FolderSyncMethod
Retrieve the sync direction configured for this directory.
Sourcepub fn startup_catchup_mode(
&self,
fallback: &StartupCatchupMode,
) -> StartupCatchupMode
pub fn startup_catchup_mode( &self, fallback: &StartupCatchupMode, ) -> StartupCatchupMode
Retrieve the catchup strategy override or fallback to global configuration.
Trait Implementations§
Source§impl Clone for WatchPathEntry
impl Clone for WatchPathEntry
Source§fn clone(&self) -> WatchPathEntry
fn clone(&self) -> WatchPathEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WatchPathEntry
impl Debug for WatchPathEntry
Source§impl<'de> Deserialize<'de> for WatchPathEntry
impl<'de> Deserialize<'de> for WatchPathEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WatchPathEntry
impl RefUnwindSafe for WatchPathEntry
impl Send for WatchPathEntry
impl Sync for WatchPathEntry
impl Unpin for WatchPathEntry
impl UnsafeUnpin for WatchPathEntry
impl UnwindSafe for WatchPathEntry
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more