pub struct PodcastSoundbite {
pub start_time: f64,
pub duration: f64,
pub title: Option<String>,
}Expand description
Podcast 2.0 soundbite (shareable clip)
Marks a portion of the audio for social sharing or highlights.
Namespace: https://podcastindex.org/namespace/1.0
§Examples
use feedparser_rs::PodcastSoundbite;
let soundbite = PodcastSoundbite {
start_time: 120.5,
duration: 30.0,
title: Some("Great quote".to_string()),
};
assert_eq!(soundbite.start_time, 120.5);
assert_eq!(soundbite.duration, 30.0);Fields§
§start_time: f64Start time in seconds (startTime attribute)
duration: f64Duration in seconds (duration attribute)
title: Option<String>Optional title/description (text content)
Trait Implementations§
Source§impl Clone for PodcastSoundbite
impl Clone for PodcastSoundbite
Source§fn clone(&self) -> PodcastSoundbite
fn clone(&self) -> PodcastSoundbite
Returns a duplicate 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 PodcastSoundbite
impl Debug for PodcastSoundbite
Source§impl Default for PodcastSoundbite
impl Default for PodcastSoundbite
Source§fn default() -> PodcastSoundbite
fn default() -> PodcastSoundbite
Returns the “default value” for a type. Read more
Source§impl PartialEq for PodcastSoundbite
impl PartialEq for PodcastSoundbite
impl StructuralPartialEq for PodcastSoundbite
Auto Trait Implementations§
impl Freeze for PodcastSoundbite
impl RefUnwindSafe for PodcastSoundbite
impl Send for PodcastSoundbite
impl Sync for PodcastSoundbite
impl Unpin for PodcastSoundbite
impl UnwindSafe for PodcastSoundbite
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