pub struct PodcastPerson {
pub name: String,
pub role: Option<String>,
pub group: Option<String>,
pub img: Option<String>,
pub href: Option<String>,
}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".to_string()),
href: Some("https://example.com/john".to_string()),
};
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<String>Image URL (img attribute)
href: Option<String>Personal URL/homepage (href attribute)
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§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 PodcastPerson
impl RefUnwindSafe for PodcastPerson
impl Send for PodcastPerson
impl Sync for PodcastPerson
impl Unpin for PodcastPerson
impl UnwindSafe for PodcastPerson
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)