pub struct CreatorSettings {
pub default_price_cents: u64,
pub show_reading_time: bool,
pub brand_color: Option<String>,
pub unlock_button_text: Option<String>,
}Expand description
Creator settings for customization
Fields§
§default_price_cents: u64Default price for new articles (in cents)
show_reading_time: boolWhether to show reading time estimates
brand_color: Option<String>Custom branding color (hex)
Custom CTA text
Trait Implementations§
Source§impl Clone for CreatorSettings
impl Clone for CreatorSettings
Source§fn clone(&self) -> CreatorSettings
fn clone(&self) -> CreatorSettings
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 CreatorSettings
impl Debug for CreatorSettings
Source§impl Default for CreatorSettings
impl Default for CreatorSettings
Source§impl<'de> Deserialize<'de> for CreatorSettings
impl<'de> Deserialize<'de> for CreatorSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 From<&CreatorSettings> for CreatorSettingsDto
impl From<&CreatorSettings> for CreatorSettingsDto
Source§fn from(settings: &CreatorSettings) -> Self
fn from(settings: &CreatorSettings) -> Self
Converts to this type from the input type.
Source§impl From<CreatorSettingsDto> for CreatorSettings
impl From<CreatorSettingsDto> for CreatorSettings
Source§fn from(dto: CreatorSettingsDto) -> Self
fn from(dto: CreatorSettingsDto) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreatorSettings
impl RefUnwindSafe for CreatorSettings
impl Send for CreatorSettings
impl Sync for CreatorSettings
impl Unpin for CreatorSettings
impl UnsafeUnpin for CreatorSettings
impl UnwindSafe for CreatorSettings
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