#[non_exhaustive]pub struct PodcastPerson {
pub name: String,
pub role: Option<String>,
pub group: Option<String>,
pub img: Option<Url>,
pub href: Option<Url>,
}Expand description
Podcast 2.0 person
Information about hosts, guests, or other people associated with the podcast.
§Examples
use feedparser_rs::PodcastPerson;
let mut host = PodcastPerson::new("John Doe");
host.role = Some("host".to_string());
host.group = None;
host.img = Some("https://example.com/john.jpg".into());
host.href = Some("https://example.com/john".into());
assert_eq!(host.name, "John Doe");
assert_eq!(host.role.as_deref(), Some("host"));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.name: StringPerson’s name (text content)
role: Option<String>Role: “host”, “guest”, “editor”, etc. (role attribute)
group: Option<String>Group name (group attribute)
img: Option<Url>Image URL (img 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.
href: Option<Url>Personal URL/homepage (href 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.
Implementations§
Trait Implementations§
Source§impl Clone for PodcastPerson
impl Clone for PodcastPerson
Source§impl Debug for PodcastPerson
impl Debug for PodcastPerson
impl Eq for PodcastPerson
Source§impl PartialEq for PodcastPerson
impl PartialEq for PodcastPerson
impl StructuralPartialEq for PodcastPerson
Auto Trait Implementations§
impl Forget for PodcastPerson
impl Freeze for PodcastPerson
impl Move for PodcastPerson
impl RefUnwindSafe for PodcastPerson
impl Send for PodcastPersonwhere
RawVecInner: Send,
impl Sync for PodcastPersonwhere
RawVecInner: Sync,
impl Unpin for PodcastPerson
impl UnsafeUnpin for PodcastPerson
impl UnwindSafe for PodcastPersonwhere
RawVecInner: UnwindSafe,
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