pub struct PlaylistResponse {
pub id: PlaylistId,
pub published_at: Option<DateTime<Utc>>,
pub creator_id: Option<UserId>,
pub author_id: Option<UserId>,
pub author_name: Option<String>,
pub likes: i64,
pub plays: i64,
pub live_up_to_date: bool,
pub is_liked: bool,
pub playlist_data: PlaylistData,
pub admin_data: PlaylistAdminData,
}
Expand description
The response returned when a request for GET
ing a Playlist is successful.
Fields§
§id: PlaylistId
The ID of the Playlist.
published_at: Option<DateTime<Utc>>
When (if at all) the Playlist has published a draft to live.
creator_id: Option<UserId>
The ID of the Playlist’s original creator (None
if unknown).
The current author
The author’s name, as “{given_name} {family_name}”.
likes: i64
Number of likes on Playlist
plays: i64
Number of plays Playlist
live_up_to_date: bool
Live is current to Draft
is_liked: bool
Liked by current user.
playlist_data: PlaylistData
The data of the requested Playlist.
admin_data: PlaylistAdminData
Admin data for a course
Trait Implementations§
Source§impl Clone for PlaylistResponse
impl Clone for PlaylistResponse
Source§fn clone(&self) -> PlaylistResponse
fn clone(&self) -> PlaylistResponse
Returns a copy of the value. Read more
1.0.0 · 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 PlaylistResponse
impl Debug for PlaylistResponse
Source§impl<'de> Deserialize<'de> for PlaylistResponse
impl<'de> Deserialize<'de> for PlaylistResponse
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<PlaylistResponse> for Asset
impl From<PlaylistResponse> for Asset
Source§fn from(playlist: PlaylistResponse) -> Self
fn from(playlist: PlaylistResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PlaylistResponse
impl RefUnwindSafe for PlaylistResponse
impl Send for PlaylistResponse
impl Sync for PlaylistResponse
impl Unpin for PlaylistResponse
impl UnwindSafe for PlaylistResponse
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