# This file is auto-generated by alef — DO NOT EDIT. # alef:hash:062af823ed98b7935d68fff25ccea119ed4a579bc0e6041cc4ba5bac31f7be1b # To regenerate: alef generate # To verify freshness: alef verify --exit-code defmodule HtmlToMarkdown.ConversionResult do @moduledoc """ The primary result of HTML conversion and extraction. Contains the converted text output, optional structured document tree, metadata, extracted tables, images, and processing warnings. # Example ```text use html_to_markdown_rs::{convert, ConversionOptions}; let result = convert("
World
", None)?; assert!(result.content.is_some()); assert!(result.warnings.is_empty()); ``` """ @typedoc "The primary result of HTML conversion and extraction." @type t :: %__MODULE__{ content: String.t() | nil, document: map() | nil, metadata: map(), tables: [map()], warnings: [map()] } defstruct content: nil, document: nil, metadata: nil, tables: [], warnings: [] defimpl Jason.Encoder do @doc false def encode(value, opts) do value |> Map.from_struct() |> Enum.reject(fn {_k, v} -> v == nil end) |> Enum.into(%{}) |> Jason.Encoder.encode(opts) end end end