pub enum ArtistImageRef {
Local(PathBuf),
Remote(String),
}Expand description
A source-agnostic artist photo reference: a local file path or a remote URL.
Resolved to a CoverUrl by the cover seam (server::cover::artist), so the
UI never branches on where the image lives. A custom user override is handled
separately (it’s a priority concern, not a source one).
Variants§
Local(PathBuf)
A local filesystem path (from the local scan).
Remote(String)
A remote URL (from a server sync).
Trait Implementations§
Source§impl Clone for ArtistImageRef
impl Clone for ArtistImageRef
Source§fn clone(&self) -> ArtistImageRef
fn clone(&self) -> ArtistImageRef
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 ArtistImageRef
impl Debug for ArtistImageRef
Source§impl PartialEq for ArtistImageRef
impl PartialEq for ArtistImageRef
Source§fn eq(&self, other: &ArtistImageRef) -> bool
fn eq(&self, other: &ArtistImageRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ArtistImageRef
Auto Trait Implementations§
impl Freeze for ArtistImageRef
impl RefUnwindSafe for ArtistImageRef
impl Send for ArtistImageRef
impl Sync for ArtistImageRef
impl Unpin for ArtistImageRef
impl UnsafeUnpin for ArtistImageRef
impl UnwindSafe for ArtistImageRef
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