pub struct PaywallConfig {
pub app_name: Option<String>,
pub app_logo: Option<String>,
pub cdp_client_key: Option<String>,
pub session_token_endpoint: Option<String>,
pub custom_css: Option<String>,
pub custom_js: Option<String>,
pub theme: Option<ThemeConfig>,
pub branding: Option<BrandingConfig>,
}Expand description
Template configuration for paywall customization
Fields§
§app_name: Option<String>App name displayed in the paywall
app_logo: Option<String>App logo URL
cdp_client_key: Option<String>CDP client key for enhanced RPC
session_token_endpoint: Option<String>Session token endpoint
custom_css: Option<String>Custom CSS styles
custom_js: Option<String>Custom JavaScript
theme: Option<ThemeConfig>Theme configuration
branding: Option<BrandingConfig>Branding configuration
Implementations§
Source§impl PaywallConfig
impl PaywallConfig
Sourcepub fn with_app_name(self, app_name: impl Into<String>) -> Self
pub fn with_app_name(self, app_name: impl Into<String>) -> Self
Set the app name
Sourcepub fn with_app_logo(self, app_logo: impl Into<String>) -> Self
pub fn with_app_logo(self, app_logo: impl Into<String>) -> Self
Set the app logo
Sourcepub fn with_cdp_client_key(self, cdp_client_key: impl Into<String>) -> Self
pub fn with_cdp_client_key(self, cdp_client_key: impl Into<String>) -> Self
Set the CDP client key
Sourcepub fn with_session_token_endpoint(self, endpoint: impl Into<String>) -> Self
pub fn with_session_token_endpoint(self, endpoint: impl Into<String>) -> Self
Set the session token endpoint
Sourcepub fn with_custom_css(self, css: impl Into<String>) -> Self
pub fn with_custom_css(self, css: impl Into<String>) -> Self
Set custom CSS
Sourcepub fn with_custom_js(self, js: impl Into<String>) -> Self
pub fn with_custom_js(self, js: impl Into<String>) -> Self
Set custom JavaScript
Sourcepub fn with_theme(self, theme: ThemeConfig) -> Self
pub fn with_theme(self, theme: ThemeConfig) -> Self
Set theme configuration
Sourcepub fn with_branding(self, branding: BrandingConfig) -> Self
pub fn with_branding(self, branding: BrandingConfig) -> Self
Set branding configuration
Trait Implementations§
Source§impl Clone for PaywallConfig
impl Clone for PaywallConfig
Source§fn clone(&self) -> PaywallConfig
fn clone(&self) -> PaywallConfig
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 PaywallConfig
impl Debug for PaywallConfig
Source§impl Default for PaywallConfig
impl Default for PaywallConfig
Source§fn default() -> PaywallConfig
fn default() -> PaywallConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PaywallConfig
impl RefUnwindSafe for PaywallConfig
impl Send for PaywallConfig
impl Sync for PaywallConfig
impl Unpin for PaywallConfig
impl UnwindSafe for PaywallConfig
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