pub struct Copies {
pub origin: Option<LibraryServer>,
pub also_on: Vec<TitleCopy>,
pub play_from: MediaId,
}Expand description
Experimental (federation): where an item is from, and its
title’s copies on other servers, as a SearchHit and an Item
reply have them.
Fields§
§origin: Option<LibraryServer>The paired server the item is from; None for this server’s own.
also_on: Vec<TitleCopy>The title’s copies on other servers: this server’s first, then the paired servers online by name, then those offline (greyed: browsed, not played).
play_from: MediaIdThe copy that plays: on the server the user chose for the title
(SetPlayFrom) while it has one, else the item’s own id.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Copies
impl<'de> Deserialize<'de> for Copies
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 Copies
impl StructuralPartialEq for Copies
Auto Trait Implementations§
impl Forget for Copies
impl Freeze for Copies
impl Move for Copies
impl RefUnwindSafe for Copies
impl Send for Copies
impl Sync for Copies
impl Unpin for Copies
impl UnsafeUnpin for Copies
impl UnwindSafe for Copies
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