pub struct PaywallOptions {
pub server_did: String,
pub server_private_key: [u8; 32],
pub price_msat: u64,
pub resource: String,
pub lightning: Arc<dyn LightningNode>,
pub token_secret: Vec<u8>,
pub invoice_ttl_seconds: u64,
pub now: Box<dyn Fn() -> DateTime<Utc> + Send + Sync>,
pub replay: Option<Arc<ReplayCache>>,
}Fields§
§server_did: String§server_private_key: [u8; 32]§price_msat: u64§resource: String§lightning: Arc<dyn LightningNode>§token_secret: Vec<u8>§invoice_ttl_seconds: u64§now: Box<dyn Fn() -> DateTime<Utc> + Send + Sync>§replay: Option<Arc<ReplayCache>>Implementations§
Auto Trait Implementations§
impl Freeze for PaywallOptions
impl !RefUnwindSafe for PaywallOptions
impl Send for PaywallOptions
impl Sync for PaywallOptions
impl Unpin for PaywallOptions
impl UnsafeUnpin for PaywallOptions
impl !UnwindSafe for PaywallOptions
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