StoreData

Struct StoreData 

Source
pub struct StoreData {
Show 26 fields pub name: Option<String>, pub website: Option<String>, pub default_currency: Option<String>, pub invoice_expiration: Option<Box<TimeSpanSeconds>>, pub monitoring_expiration: Option<Box<TimeSpanSeconds>>, pub speed_policy: Option<SpeedPolicy>, pub lightning_description_template: Option<String>, pub payment_tolerance: Option<f64>, pub anyone_can_create_invoice: Option<bool>, pub requires_refund_email: Option<bool>, pub receipt: Option<Box<ReceiptOptions>>, pub lightning_amount_in_satoshi: Option<bool>, pub lightning_private_route_hints: Option<bool>, pub on_chain_with_ln_invoice_fallback: Option<bool>, pub redirect_automatically: Option<bool>, pub show_recommended_fee: Option<bool>, pub recommended_fee_block_target: Option<i32>, pub default_lang: Option<String>, pub custom_logo: Option<String>, pub custom_css: Option<String>, pub html_title: Option<String>, pub network_fee_mode: Option<NetworkFeeMode>, pub pay_join_enabled: Option<bool>, pub lazy_payment_methods: Option<bool>, pub default_payment_method: Option<String>, pub id: Option<String>,
}

Fields§

§name: Option<String>

The name of the store

§website: Option<String>

The absolute url of the store

§default_currency: Option<String>

The default currency of the store

§invoice_expiration: Option<Box<TimeSpanSeconds>>

The time after which an invoice is considered expired if not paid. The value will be rounded down to a minute.

§monitoring_expiration: Option<Box<TimeSpanSeconds>>

The time after which an invoice which has been paid but not confirmed will be considered invalid. The value will be rounded down to a minute.

§speed_policy: Option<SpeedPolicy>§lightning_description_template: Option<String>

The BOLT11 description of the lightning invoice in the checkout. You can use placeholders ‘{StoreName}’, ‘{ItemDescription}’ and ‘{OrderId}’.

§payment_tolerance: Option<f64>

Consider an invoice fully paid, even if the payment is missing ‘x’ % of the full amount.

§anyone_can_create_invoice: Option<bool>

If true, then no authentication is needed to create invoices on this store.

§requires_refund_email: Option<bool>

If true, the checkout page will ask to enter an email address before accessing payment information.

§receipt: Option<Box<ReceiptOptions>>§lightning_amount_in_satoshi: Option<bool>

If true, lightning payment methods show amount in satoshi in the checkout page.

§lightning_private_route_hints: Option<bool>

Should private route hints be included in the lightning payment of the checkout page.

§on_chain_with_ln_invoice_fallback: Option<bool>

Include lightning invoice fallback to on-chain BIP21 payment url.

§redirect_automatically: Option<bool>

After successfull payment, should the checkout page redirect the user automatically to the redirect URL of the invoice?

§show_recommended_fee: Option<bool>§recommended_fee_block_target: Option<i32>

The fee rate recommendation in the checkout page for the on-chain payment to be confirmed after ‘x’ blocks.

§default_lang: Option<String>

The default language to use in the checkout page. (The different translations available are listed here

URL to a logo to include in the checkout page.

§custom_css: Option<String>

URL to a CSS stylesheet to include in the checkout page

§html_title: Option<String>

The HTML title of the checkout page (when you over the tab in your browser)

§network_fee_mode: Option<NetworkFeeMode>§pay_join_enabled: Option<bool>

If true, payjoin will be proposed in the checkout page if possible. (More information)

§lazy_payment_methods: Option<bool>

If true, payment methods are enabled individually upon user interaction in the invoice

§default_payment_method: Option<String>

The default payment method to load when displaying an invoice. It can be in the format of BTC_LightningNetwork to specify Lightning to be the default or BTC_OnChain/ BTC for on-chain to be the default.

§id: Option<String>

The id of the store

Implementations§

Trait Implementations§

Source§

impl Clone for StoreData

Source§

fn clone(&self) -> StoreData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StoreData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for StoreData

Source§

fn default() -> StoreData

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for StoreData

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for StoreData

Source§

fn eq(&self, other: &StoreData) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for StoreData

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for StoreData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,