pub struct BrandingConfig {
pub company_name: String,
pub company_logo: Option<String>,
pub support_email: Option<String>,
pub support_url: Option<String>,
pub terms_url: Option<String>,
pub privacy_url: Option<String>,
}Expand description
Branding configuration for the paywall
Fields§
§company_name: StringCompany name
company_logo: Option<String>Company logo URL
support_email: Option<String>Support email
support_url: Option<String>Support URL
terms_url: Option<String>Terms of service URL
privacy_url: Option<String>Privacy policy URL
Implementations§
Source§impl BrandingConfig
impl BrandingConfig
Sourcepub fn with_company_logo(self, logo: impl Into<String>) -> Self
pub fn with_company_logo(self, logo: impl Into<String>) -> Self
Set company logo
Sourcepub fn with_support_email(self, email: impl Into<String>) -> Self
pub fn with_support_email(self, email: impl Into<String>) -> Self
Set support email
Sourcepub fn with_support_url(self, url: impl Into<String>) -> Self
pub fn with_support_url(self, url: impl Into<String>) -> Self
Set support URL
Sourcepub fn with_terms_url(self, url: impl Into<String>) -> Self
pub fn with_terms_url(self, url: impl Into<String>) -> Self
Set terms of service URL
Sourcepub fn with_privacy_url(self, url: impl Into<String>) -> Self
pub fn with_privacy_url(self, url: impl Into<String>) -> Self
Set privacy policy URL
Trait Implementations§
Source§impl Clone for BrandingConfig
impl Clone for BrandingConfig
Source§fn clone(&self) -> BrandingConfig
fn clone(&self) -> BrandingConfig
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 moreAuto Trait Implementations§
impl Freeze for BrandingConfig
impl RefUnwindSafe for BrandingConfig
impl Send for BrandingConfig
impl Sync for BrandingConfig
impl Unpin for BrandingConfig
impl UnwindSafe for BrandingConfig
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