pub struct ThemeConfig {
pub primary_color: String,
pub secondary_color: String,
pub background_color: String,
pub text_color: String,
pub border_radius: String,
}Expand description
Theme configuration for the paywall
Fields§
§primary_color: StringPrimary color
secondary_color: StringSecondary color
background_color: StringBackground color
text_color: StringText color
border_radius: StringBorder radius
Implementations§
Source§impl ThemeConfig
impl ThemeConfig
Sourcepub fn with_primary_color(self, color: impl Into<String>) -> Self
pub fn with_primary_color(self, color: impl Into<String>) -> Self
Set primary color
Sourcepub fn with_secondary_color(self, color: impl Into<String>) -> Self
pub fn with_secondary_color(self, color: impl Into<String>) -> Self
Set secondary color
Sourcepub fn with_background_color(self, color: impl Into<String>) -> Self
pub fn with_background_color(self, color: impl Into<String>) -> Self
Set background color
Sourcepub fn with_text_color(self, color: impl Into<String>) -> Self
pub fn with_text_color(self, color: impl Into<String>) -> Self
Set text color
Sourcepub fn with_border_radius(self, radius: impl Into<String>) -> Self
pub fn with_border_radius(self, radius: impl Into<String>) -> Self
Set border radius
Trait Implementations§
Source§impl Clone for ThemeConfig
impl Clone for ThemeConfig
Source§fn clone(&self) -> ThemeConfig
fn clone(&self) -> ThemeConfig
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 ThemeConfig
impl Debug for ThemeConfig
Auto Trait Implementations§
impl Freeze for ThemeConfig
impl RefUnwindSafe for ThemeConfig
impl Send for ThemeConfig
impl Sync for ThemeConfig
impl Unpin for ThemeConfig
impl UnwindSafe for ThemeConfig
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