aboutsummaryrefslogtreecommitdiff
path: root/lib/models/user/activity.ml
blob: 70706e7ad65110e2ddc18f59fe1a1d603fc836ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
let string_of_sexp = Base.String.t_of_sexp
let sexp_of_string = Base.String.sexp_of_t
let option_of_sexp = Base.Option.t_of_sexp
let sexp_of_option = Base.Option.sexp_of_t
let int_of_sexp    = Base.Int.t_of_sexp
let sexp_of_int    = Base.Int.sexp_of_t

type t = {
    name: string;
    kind: int [@key "type"];
    url: string option [@default None];
} [@@deriving sexp, yojson { strict = false; exn = true }]