Skip to main content

LibraryLikeMut

Trait LibraryLikeMut 

Source
pub trait LibraryLikeMut: LibraryLike {
    // Required methods
    fn new(name: String, library_type: LibraryType, paths: Vec<PathBuf>) -> Self;
    fn update_last_scan(&mut self);
    fn set_paths(&mut self, paths: Vec<PathBuf>);
    fn set_scan_interval(&mut self, interval: u32);
    fn set_last_scan(&mut self, last_scan: Option<DateTime<Utc>>);
    fn set_auto_scan(&mut self, auto_scan: bool);
    fn set_max_retry_attempts(&mut self, max_retry_attempts: u32);
    fn set_updated_at(&mut self, updated_at: Option<DateTime<Utc>>);
    fn set_media_references(&mut self, media_references: Vec<Media>);
}
Expand description

Mutable operations for library types (only implemented by owned types like Library)

Required Methods§

Source

fn new(name: String, library_type: LibraryType, paths: Vec<PathBuf>) -> Self

Source

fn update_last_scan(&mut self)

Source

fn set_paths(&mut self, paths: Vec<PathBuf>)

Source

fn set_scan_interval(&mut self, interval: u32)

Source

fn set_last_scan(&mut self, last_scan: Option<DateTime<Utc>>)

Source

fn set_auto_scan(&mut self, auto_scan: bool)

Source

fn set_max_retry_attempts(&mut self, max_retry_attempts: u32)

Source

fn set_updated_at(&mut self, updated_at: Option<DateTime<Utc>>)

Source

fn set_media_references(&mut self, media_references: Vec<Media>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§