pub struct MediaItem {
pub media_key: String,
pub title: String,
pub content: String,
pub status: String,
pub media_url: String,
pub logo_url: Option<String>,
pub player_url: Option<String>,
pub publish_time: Option<String>,
pub created_at: String,
pub duration: Option<u64>,
}Expand description
Represents a media item in Podbean.
Fields§
§media_key: StringUnique identifier for the media
title: StringTitle of the media
content: StringDescription or content
status: StringStatus (e.g., “finished”, “transcoding”)
media_url: StringURL to the media file
logo_url: Option<String>URL to the logo/artwork
player_url: Option<String>URL to play the media
publish_time: Option<String>When the media was published
created_at: StringWhen the media was created
duration: Option<u64>Duration in seconds
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaItem
impl<'de> Deserialize<'de> for MediaItem
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
Auto Trait Implementations§
impl Freeze for MediaItem
impl RefUnwindSafe for MediaItem
impl Send for MediaItem
impl Sync for MediaItem
impl Unpin for MediaItem
impl UnwindSafe for MediaItem
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