Skip to main content

schemaorg_rs/profiles/google/
mod.rs

1//! Google Rich Results profiles.
2//!
3//! Implements validation for 7 Schema.org types that Google supports
4//! for rich result display in Search.
5
6pub(crate) mod common;
7
8mod article;
9mod breadcrumb;
10mod event;
11mod faqpage;
12mod local_business;
13mod product;
14mod recipe;
15
16pub use article::GoogleArticleProfile;
17pub use breadcrumb::GoogleBreadcrumbProfile;
18pub use event::GoogleEventProfile;
19pub use faqpage::GoogleFaqPageProfile;
20pub use local_business::GoogleLocalBusinessProfile;
21pub use product::GoogleProductProfile;
22pub use recipe::GoogleRecipeProfile;
23
24use super::ProfileRegistry;
25
26/// Registers all Google Rich Results profiles in the given registry.
27pub fn register_all(registry: &mut ProfileRegistry) {
28    registry.register(Box::new(GoogleProductProfile));
29    registry.register(Box::new(GoogleArticleProfile));
30    registry.register(Box::new(GoogleFaqPageProfile));
31    registry.register(Box::new(GoogleBreadcrumbProfile));
32    registry.register(Box::new(GoogleLocalBusinessProfile));
33    registry.register(Box::new(GoogleEventProfile));
34    registry.register(Box::new(GoogleRecipeProfile));
35}