pub struct PodcastFunding {
pub url: Url,
pub message: Option<String>,
}Expand description
Podcast 2.0 funding information
Links for supporting the podcast financially.
§Examples
use feedparser_rs::PodcastFunding;
let funding = PodcastFunding {
url: "https://example.com/donate".into(),
message: Some("Support our show!".to_string()),
};
assert_eq!(funding.url, "https://example.com/donate");Fields§
§url: UrlFunding 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.
message: Option<String>Optional message/call-to-action (text content)
Trait Implementations§
Source§impl Clone for PodcastFunding
impl Clone for PodcastFunding
Source§fn clone(&self) -> PodcastFunding
fn clone(&self) -> PodcastFunding
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 moreAuto Trait Implementations§
impl Freeze for PodcastFunding
impl RefUnwindSafe for PodcastFunding
impl Send for PodcastFunding
impl Sync for PodcastFunding
impl Unpin for PodcastFunding
impl UnwindSafe for PodcastFunding
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