pub struct PodcastTranscript {
pub url: Url,
pub transcript_type: Option<MimeType>,
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".into(),
transcript_type: Some("text/plain".into()),
language: Some("en".to_string()),
rel: None,
};
assert_eq!(transcript.url, "https://example.com/transcript.txt");Fields§
§url: UrlTranscript URL (url attribute)
§Security Warning
This URL comes from untrusted feed input and has NOT been validated for SSRF. Applications MUST validate URLs before fetching to prevent SSRF attacks.
transcript_type: Option<MimeType>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 · 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 PodcastTranscript
impl Debug for PodcastTranscript
Source§impl PartialEq for PodcastTranscript
impl PartialEq for PodcastTranscript
impl Eq for PodcastTranscript
impl StructuralPartialEq for PodcastTranscript
Auto 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§
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