pub struct PodcastTranscript {
pub url: String,
pub transcript_type: Option<String>,
pub language: Option<String>,
pub rel: Option<String>,
}Expand description
Podcast 2.0 transcript
Links to transcript files in various formats.
§Examples
use feedparser_rs::PodcastTranscript;
let transcript = PodcastTranscript {
url: "https://example.com/transcript.txt".to_string(),
transcript_type: Some("text/plain".to_string()),
language: Some("en".to_string()),
rel: None,
};
assert_eq!(transcript.url, "https://example.com/transcript.txt");Fields§
§url: StringTranscript URL (url attribute)
transcript_type: Option<String>MIME type (type attribute): “text/plain”, “text/html”, “application/json”, etc.
language: Option<String>Language code (language attribute): “en”, “es”, etc.
rel: Option<String>Relationship (rel attribute): “captions” or empty
Trait Implementations§
Source§impl Clone for PodcastTranscript
impl Clone for PodcastTranscript
Source§fn clone(&self) -> PodcastTranscript
fn clone(&self) -> PodcastTranscript
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PodcastTranscript
impl RefUnwindSafe for PodcastTranscript
impl Send for PodcastTranscript
impl Sync for PodcastTranscript
impl Unpin for PodcastTranscript
impl UnwindSafe for PodcastTranscript
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)