#[non_exhaustive]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 mut funding = PodcastFunding::new("https://example.com/donate".into());
funding.message = Some("Support our show!".to_string());
assert_eq!(funding.url, "https://example.com/donate");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: 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)
Implementations§
Trait Implementations§
Source§impl Clone for PodcastFunding
impl Clone for PodcastFunding
Auto Trait Implementations§
impl Forget for PodcastFunding
impl Freeze for PodcastFunding
impl Move for PodcastFunding
impl RefUnwindSafe for PodcastFunding
impl Send for PodcastFundingwhere
RawVecInner: Send,
impl Sync for PodcastFundingwhere
RawVecInner: Sync,
impl Unpin for PodcastFunding
impl UnsafeUnpin for PodcastFunding
impl UnwindSafe for PodcastFundingwhere
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