| Crates.io | typed-open-graph |
| lib.rs | typed-open-graph |
| version | 0.2.0 |
| created_at | 2025-11-10 21:03:33.85774+00 |
| updated_at | 2025-11-12 06:50:46.860767+00 |
| description | The Open Graph Protocol Builder |
| homepage | |
| repository | https://github.com/cjtoolkit/typed-open-graph |
| max_upload_size | |
| id | 1926189 |
| size | 48,254 |
The Open Graph Protocol Builder that generates the structured data that you can use with the template engine of your choice.
use typed_open_graph::{Website, OpenGraphTypeMarker};
use url::Url;
fn main() {
let website = Website::builder(
"The Title",
Url::parse("https://example.com/image.jpg").unwrap(),
Url::parse("https://example.com/").unwrap()
)
.image_type("image/jpeg")
.build();
// should print generated structure ready to be used in template engine
dbg!(website);
}
cargo add typed-open-graph