struct JellyfinUserData {
playback_position_ticks: Option<i64>,
is_played: Option<bool>,
is_favorite: Option<bool>,
play_count: Option<i32>,
last_played_date: Option<String>,
}Expand description
Per-user state Jellyfin attaches to an item (favourite, played, resume).
Returned on every /Users/{uid}/Items* response; we additionally name
UserData in the Fields= list so the shape is explicit rather than
dependent on the server’s default field set.
PlaybackPositionTicks is the server’s resume position for the item, and the
only place it is published — Jellyfin has no per-item “resume position”
endpoint, so reading UserData is how a resume point is obtained.
TRACES: UR-019, UR-069 | DR-113, JA-013, JA-034 | UT-099
Fields§
§playback_position_ticks: Option<i64>§is_played: Option<bool>§is_favorite: Option<bool>§play_count: Option<i32>§last_played_date: Option<String>Trait Implementations§
Source§impl Clone for JellyfinUserData
impl Clone for JellyfinUserData
Source§fn clone(&self) -> JellyfinUserData
fn clone(&self) -> JellyfinUserData
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 JellyfinUserData
impl Debug for JellyfinUserData
Source§impl<'de> Deserialize<'de> for JellyfinUserData
impl<'de> Deserialize<'de> for JellyfinUserData
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
Source§impl From<JellyfinUserData> for UserData
impl From<JellyfinUserData> for UserData
Source§fn from(jf: JellyfinUserData) -> Self
fn from(jf: JellyfinUserData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JellyfinUserData
impl RefUnwindSafe for JellyfinUserData
impl Send for JellyfinUserData
impl Sync for JellyfinUserData
impl Unpin for JellyfinUserData
impl UnsafeUnpin for JellyfinUserData
impl UnwindSafe for JellyfinUserData
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