View Source Rivet.Ecto.Collection.Model behaviour (rivet v1.0.0)

Link to this section Summary

Link to this section Callbacks

Link to this callback

build(params)

View Source (optional)
@callback build(params :: map()) :: Ecto.Changeset.t()
Link to this callback

change_post(item, changes)

View Source (optional)
@callback change_post(item :: map(), changes :: map()) :: Ecto.Changeset.t()
Link to this callback

change_prep(item, changes)

View Source (optional)
@callback change_prep(item :: map(), changes :: map()) :: Ecto.Changeset.t()
Link to this callback

changeset(item, params)

View Source (optional)
@callback changeset(item :: map(), params :: map()) :: Ecto.Changeset.t()
Link to this callback

create_post(item, changes)

View Source (optional)
@callback create_post(item :: map(), changes :: map()) :: Ecto.Changeset.t()
Link to this callback

create_prep(item, changes)

View Source (optional)
@callback create_prep(item :: map(), changes :: map()) :: Ecto.Changeset.t()
@callback validate(Ecto.Changeset.t()) :: Ecto.Changeset.t()