pub struct PaymentLinkConfig {
pub service_url: String,
pub metadata: HashMap<String, Value>,
pub goal: Option<String>,
}Expand description
Configuration for creating payment links
Fields§
§service_url: StringBase URL for the payment service
metadata: HashMap<String, Value>Additional metadata to include in the OOB invitation
goal: Option<String>Custom goal description (defaults to “Process payment request”)
Implementations§
Source§impl PaymentLinkConfig
impl PaymentLinkConfig
Sourcepub fn with_service_url(self, url: &str) -> Self
pub fn with_service_url(self, url: &str) -> Self
Set a custom service URL
Sourcepub fn with_metadata(self, key: &str, value: Value) -> Self
pub fn with_metadata(self, key: &str, value: Value) -> Self
Add metadata to the OOB invitation
Trait Implementations§
Source§impl Clone for PaymentLinkConfig
impl Clone for PaymentLinkConfig
Source§fn clone(&self) -> PaymentLinkConfig
fn clone(&self) -> PaymentLinkConfig
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 moreSource§impl Debug for PaymentLinkConfig
impl Debug for PaymentLinkConfig
Auto Trait Implementations§
impl Freeze for PaymentLinkConfig
impl RefUnwindSafe for PaymentLinkConfig
impl Send for PaymentLinkConfig
impl Sync for PaymentLinkConfig
impl Unpin for PaymentLinkConfig
impl UnsafeUnpin for PaymentLinkConfig
impl UnwindSafe for PaymentLinkConfig
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