Current section
Files
Jump to
Current section
Files
lib/xberg/map_result.ex
# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:b2c29ab80fb9cdb8c5190a7808ad862ad890f416ad887092447b282a5b1b69e0
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule Xberg.MapResult do
@moduledoc "The result of a map operation, containing discovered URLs."
@typedoc "The result of a map operation, containing discovered URLs."
@type t :: %__MODULE__{
urls: [Xberg.SitemapUrl.t()]
}
defstruct urls: []
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