#[non_exhaustive]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 mut transcript = PodcastTranscript::new("https://example.com/transcript.txt".into());
transcript.transcript_type = Some("text/plain".into());
transcript.language = Some("en".to_string());
transcript.rel = None;
assert_eq!(transcript.url, "https://example.com/transcript.txt");Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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
Implementations§
Trait Implementations§
Source§impl Clone for PodcastTranscript
impl Clone for PodcastTranscript
Source§impl Debug for PodcastTranscript
impl Debug for PodcastTranscript
impl Eq for PodcastTranscript
Source§impl PartialEq for PodcastTranscript
impl PartialEq for PodcastTranscript
impl StructuralPartialEq for PodcastTranscript
Auto Trait Implementations§
impl Forget for PodcastTranscript
impl Freeze for PodcastTranscript
impl Move for PodcastTranscript
impl RefUnwindSafe for PodcastTranscript
impl Send for PodcastTranscript
impl Sync for PodcastTranscript
impl Unpin for PodcastTranscript
impl UnsafeUnpin for PodcastTranscriptwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
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