干燥 Dry尝试为构建复杂的数据结构提供不错的DSL,而不必进行自定义映射和验证。 它受到Ruby dry-struct库的极大启发。 用法 defmodule Sibling do use Dry alias Dry . Types schema do attribute ( :name , Types . String ) end end defmodule User do use Dry alias Dry . Types schema do attribute ( :name , Types . String ) attribute