pub struct StructuredDataConfig {
pub additional_data: Option<HashMap<String, String>>,
pub page_type: String,
pub additional_types: Vec<String>,
}Expand description
Configuration options for structured data generation.
§Examples
use html_generator::seo::StructuredDataConfig;
let cfg = StructuredDataConfig {
page_type: "Article".into(),
additional_types: vec!["NewsArticle".into()],
additional_data: None,
};
assert_eq!(cfg.page_type, "Article");Fields§
§additional_data: Option<HashMap<String, String>>Additional key-value pairs to include in the structured data
page_type: StringThe type of webpage (e.g., “WebPage”, “Article”, “Product”)
additional_types: Vec<String>Additional schema.org types to include
Trait Implementations§
Source§impl Clone for StructuredDataConfig
impl Clone for StructuredDataConfig
Source§fn clone(&self) -> StructuredDataConfig
fn clone(&self) -> StructuredDataConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StructuredDataConfig
impl Debug for StructuredDataConfig
Auto Trait Implementations§
impl Freeze for StructuredDataConfig
impl RefUnwindSafe for StructuredDataConfig
impl Send for StructuredDataConfig
impl Sync for StructuredDataConfig
impl Unpin for StructuredDataConfig
impl UnsafeUnpin for StructuredDataConfig
impl UnwindSafe for StructuredDataConfig
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