#[non_exhaustive]pub enum Namespace {
Plex,
Preview,
Image,
Federated,
}Expand description
Which catalog an ID belongs to.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Plex
An item in the Plex library; the key is its Plex ratingKey.
Preview
Something the server made itself rather than a catalog: a sheet of
frame previews, an ArtworkId like preview:<set>/<n>.
Image
An image the server keeps or draws itself: a playlist’s
uploaded cover (image:playlist/<hash>), its mosaic, a built-in
playlist’s tile. Only ever an ArtworkId.
Federated
A paired server’s, as this server caches it: the key is the
origin’s server id and the id the origin knows it by
(fed:movie:<origin>:plex:12, fed:<origin>:plex:2).
Trait Implementations§
impl Copy for Namespace
impl Eq for Namespace
impl StructuralPartialEq for Namespace
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnsafeUnpin for Namespace
impl UnwindSafe for Namespace
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