pub struct BrandingConfig {
pub logo_base64: Option<String>,
pub logo_url: Option<String>,
pub header: Option<String>,
pub footer: Option<String>,
pub brand_color: String,
pub company_name: Option<String>,
pub show_page_numbers: bool,
pub show_timestamp: bool,
pub font_size: u8,
pub page_size: PageSize,
}Expand description
Branding configuration for PDF exports
Fields§
§logo_base64: Option<String>Logo as base64-encoded image data (PNG or JPEG)
logo_url: Option<String>Logo URL (alternative to base64)
header: Option<String>Header text (appears at top of each page)
Footer text (appears at bottom of each page)
brand_color: StringPrimary brand color in hex format (e.g., “#0066CC”)
company_name: Option<String>Company or organization name
show_page_numbers: boolInclude page numbers
show_timestamp: boolInclude generation timestamp
font_size: u8Font size for body text (in points)
page_size: PageSizePage size (A4 or Letter)
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 moreSource§impl Debug for BrandingConfig
impl Debug for BrandingConfig
Source§impl Default for BrandingConfig
impl Default for BrandingConfig
Source§fn default() -> BrandingConfig
fn default() -> BrandingConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BrandingConfig
impl<'de> Deserialize<'de> for BrandingConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BrandingConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BrandingConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BrandingConfig
impl Serialize for BrandingConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto 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