pub struct ArtworkId { /* private fields */ }Expand description
A piece of artwork, fetched through the client protocol, never from
Plex directly: <namespace>:<key>.
Implementations§
Source§impl ArtworkId
impl ArtworkId
Sourcepub fn new(
namespace: Namespace,
key: impl Into<String>,
) -> Result<Self, IdError>
pub fn new( namespace: Namespace, key: impl Into<String>, ) -> Result<Self, IdError>
Build an ID. The server does this; clients only receive them.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ArtworkId
impl<'de> Deserialize<'de> for ArtworkId
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
impl Eq for ArtworkId
impl StructuralPartialEq for ArtworkId
Auto Trait Implementations§
impl Freeze for ArtworkId
impl RefUnwindSafe for ArtworkId
impl Send for ArtworkId
impl Sync for ArtworkId
impl Unpin for ArtworkId
impl UnsafeUnpin for ArtworkId
impl UnwindSafe for ArtworkId
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