#[non_exhaustive]pub struct PodcastValueRecipient {
pub name: Option<String>,
pub type_: String,
pub address: String,
pub split: u32,
pub fee: Option<bool>,
}Expand description
Value recipient for payment splitting
Defines a single recipient in the value-for-value payment model. Each recipient receives a percentage (split) of the total payment.
§Examples
use feedparser_rs::PodcastValueRecipient;
let mut recipient = PodcastValueRecipient::default();
recipient.name = Some("Podcast Host".to_string());
recipient.type_ = "node".to_string();
recipient.address = "03ae9f91a0cb8ff43840e3c322c4c61f019d8c1c3cea15a25cfc425ac605e61a4a".to_string();
recipient.split = 95;
recipient.fee = Some(false);
assert_eq!(recipient.split, 95);
assert_eq!(recipient.fee, Some(false));Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>Recipient’s name (name attribute)
type_: StringRecipient type (type attribute): “node” for Lightning Network nodes
address: StringPayment address (address attribute)
For Lightning: node public key (hex-encoded) For other types: appropriate address format
§Security Warning
This address comes from untrusted feed input. Applications MUST validate addresses before sending payments to prevent sending funds to wrong recipients.
split: u32Payment split percentage (split attribute)
Can be absolute percentage (1-100) or relative value that’s normalized. Total of all splits should equal 100 for percentage-based splits.
fee: Option<bool>Whether this is a fee recipient (fee attribute)
Fee recipients are paid before regular splits are calculated.