View Source Ash.Resource.Relationships.HasOne (ash v2.14.18)
Represents a has_one relationship on a resource
Summary
Types
@type t() :: %Ash.Resource.Relationships.HasOne{ allow_nil?: term(), allow_orphans?: boolean(), api: term(), cardinality: :one, context: term(), could_be_related_at_creation?: term(), description: String.t(), destination: Ash.Resource.t(), destination_attribute: atom(), filter: Ash.Filter.t() | nil, filterable?: boolean(), from_many?: boolean(), manual: atom() | {atom(), Keyword.t()} | nil, name: atom(), no_attributes?: boolean(), not_found_message: term(), private?: boolean(), read_action: atom(), sort: term(), source: Ash.Resource.t(), source_attribute: atom(), type: :has_one, validate_destination_attribute?: term(), violation_message: term(), writable?: boolean() }