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 recipient = PodcastValueRecipient {
name: Some("Podcast Host".to_string()),
type_: "node".to_string(),
address: "03ae9f91a0cb8ff43840e3c322c4c61f019d8c1c3cea15a25cfc425ac605e61a4a".to_string(),
split: 95,
fee: Some(false),
};
assert_eq!(recipient.split, 95);
assert_eq!(recipient.fee, Some(false));Fields§
§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.
Trait Implementations§
Source§impl Clone for PodcastValueRecipient
impl Clone for PodcastValueRecipient
Source§fn clone(&self) -> PodcastValueRecipient
fn clone(&self) -> PodcastValueRecipient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more