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 host = PodcastPerson {
name: "John Doe".to_string(),
role: Some("host".to_string()),
group: None,
img: Some("https://example.com/john.jpg".into()),
href: Some("https://example.com/john".into()),
};
assert_eq!(host.name, "John Doe");
assert_eq!(host.role.as_deref(), Some("host"));Fields§
§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.
Trait Implementations§
Source§impl Clone for PodcastPerson
impl Clone for PodcastPerson
Source§fn clone(&self) -> PodcastPerson
fn clone(&self) -> PodcastPerson
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 PodcastPerson
impl Debug for PodcastPerson
Source§impl PartialEq for PodcastPerson
impl PartialEq for PodcastPerson
impl Eq for PodcastPerson
impl StructuralPartialEq for PodcastPerson
Auto Trait Implementations§
impl Freeze for PodcastPerson
impl RefUnwindSafe for PodcastPerson
impl Send for PodcastPerson
impl Sync for PodcastPerson
impl Unpin for PodcastPerson
impl UnwindSafe for PodcastPerson
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