Astarte.Core.Triggers.Policy.from_policy_proto

You're seeing just the function from_policy_proto, go back to Astarte.Core.Triggers.Policy module for more information.
Link to this function

from_policy_proto(policy_proto)

View Source

Creates a Policy from a PolicyProto. Returns {:ok, %Policy{}} on success, {:error, :invalid_policy_data} on failure