pub struct LibraryId { /* private fields */ }Expand description
A library (a Plex library section today): <namespace>:<key>.
Implementations§
Source§impl LibraryId
impl LibraryId
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.
Sourcepub fn federated(origin_id: &str, remote: &LibraryId) -> Result<Self, IdError>
pub fn federated(origin_id: &str, remote: &LibraryId) -> Result<Self, IdError>
remote, of the server whose server id is origin, as
this server names it: fed:<origin>:<remote>.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LibraryId
impl<'de> Deserialize<'de> for LibraryId
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 LibraryId
impl StructuralPartialEq for LibraryId
Auto Trait Implementations§
impl Forget for LibraryId
impl Freeze for LibraryId
impl Move for LibraryId
impl RefUnwindSafe for LibraryId
impl Send for LibraryId
impl Sync for LibraryId
impl Unpin for LibraryId
impl UnsafeUnpin for LibraryId
impl UnwindSafe for LibraryId
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