PropertyDamage.ExternalMarker protocol (PropertyDamage v0.2.0)
View SourceProtocol for custom external marker types.
Domain libraries can define their own external marker types that implement this protocol, enabling external field markers without depending on PropertyDamage.
Example
defmodule MyDomain.ExternalId do
defstruct [:field_name]
end
defimpl PropertyDamage.ExternalMarker, for: MyDomain.ExternalId do
def external?(_), do: true
endThen in your test project, these markers will be recognized automatically.
Summary
Functions
Returns true if this value is an external marker
Types
@type t() :: term()
All the types that implement this protocol.