Current section

Files

Jump to
html_to_markdown lib html_to_markdown structured_data.ex
Raw

lib/html_to_markdown/structured_data.ex

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:84d618befc1fcbd42d1a02ee1ded5dc87dd438dbe303400c2f89891d9475e3f6
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule HtmlToMarkdown.StructuredData do
@moduledoc """
Structured data block (JSON-LD, Microdata, or RDFa).
Represents machine-readable structured data found in the document.
JSON-LD blocks are collected as raw JSON strings for flexibility.
# Examples
```
let schema = StructuredData {
data_type: StructuredDataType::JsonLd,
raw_json: r#"{"@context":"https://schema.org","@type":"Article"}"#.to_string(),
schema_type: Some("Article".to_string()),
};
assert_eq!(schema.data_type, StructuredDataType::JsonLd);
```
"""
@typedoc "Structured data block (JSON-LD, Microdata, or RDFa)."
@type t :: %__MODULE__{
data_type: String.t() | nil,
raw_json: String.t() | nil,
schema_type: String.t() | nil
}
defstruct data_type: :json_ld,
raw_json: nil,
schema_type: nil
end