1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-27 18:31:07 +00:00
mobilizon/lib/federation/activity_stream/convertible.ex

12 lines
250 B
Elixir
Raw Normal View History

defprotocol Mobilizon.Federation.ActivityStream.Convertible do
2019-09-22 16:29:13 +00:00
@moduledoc """
Convertible protocol.
"""
@type t :: struct()
@type activity_streams :: map()
2019-09-22 16:29:13 +00:00
@spec model_to_as(t()) :: activity_streams()
2019-09-22 16:29:13 +00:00
def model_to_as(convertible)
end