Astarte.Core.Triggers.Policy.to_policy_proto
You're seeing just the function
to_policy_proto
, go back to Astarte.Core.Triggers.Policy module for more information.
Creates a PolicyProto
from a Policy
.
It is assumed that the Policy
is valid and constructed using Policy.changeset
Returns a %PolicyProto{}