pub enum Scanner {
Collection {
parent: Option<CollectionId>,
id: CollectionId,
poster_file_name: Option<String>,
},
Movie {
parent: Option<CollectionId>,
id: MovieId,
media_file_name: String,
poster_file_name: Option<String>,
},
Show {
parent: Option<CollectionId>,
id: ShowId,
poster_file_name: Option<String>,
},
Season {
show: ShowId,
number: SeasonNumber,
poster_file_name: Option<String>,
},
Episode {
show: ShowId,
season: SeasonNumber,
number: EpisodeNumbers,
media_file_name: String,
poster_file_name: Option<String>,
},
}Expand description
The scanner for collections
Variants§
Collection
A scanned collection
Fields
§
parent: Option<CollectionId>The ID of the parent collection (if any)
§
id: CollectionIdThe ID of the collection
Movie
A scanned movie
Fields
§
parent: Option<CollectionId>The ID of the parent collection (if any)
Show
A scanned show
Fields
§
parent: Option<CollectionId>The ID of the parent collection (if any)
Season
A scanned episode
Fields
§
number: SeasonNumberThe season this episode belongs to
Episode
A scanned episode
Implementations§
Source§impl Scanner
impl Scanner
Sourcepub fn scan_detect_folder(
path: &Path,
parent: Option<CollectionId>,
) -> impl Stream<Item = Item>
pub fn scan_detect_folder( path: &Path, parent: Option<CollectionId>, ) -> impl Stream<Item = Item>
Detect the type of a folder and call the correct scanner. Use this only for detecting possibly ambiguous media:
- Collections
- Movies
- Shows
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scanner
impl RefUnwindSafe for Scanner
impl Send for Scanner
impl Sync for Scanner
impl Unpin for Scanner
impl UnwindSafe for Scanner
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