diff options
| author | Adelyn Breelove <[email protected]> | 2018-12-13 14:11:54 -0700 |
|---|---|---|
| committer | Adelyn Breelove <[email protected]> | 2018-12-13 14:11:54 -0700 |
| commit | 73d115ce6260e97f5f7ee47f743d842ffd292662 (patch) | |
| tree | 7825358ae1b4736392909cb72ce26cdb26257d23 /lib/models/activity_j.mli | |
| parent | Add rate limit handling (diff) | |
| download | disml-73d115ce6260e97f5f7ee47f743d842ffd292662.tar.xz disml-73d115ce6260e97f5f7ee47f743d842ffd292662.zip | |
Working on deriving types from json
Diffstat (limited to 'lib/models/activity_j.mli')
| -rw-r--r-- | lib/models/activity_j.mli | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/lib/models/activity_j.mli b/lib/models/activity_j.mli new file mode 100644 index 0000000..3c93cc1 --- /dev/null +++ b/lib/models/activity_j.mli @@ -0,0 +1,47 @@ +(* Auto-generated from "activity.atd" *) +[@@@ocaml.warning "-27-32-35-39"] + +type snowflake = Snowflake_t.t + +type t = Activity_t.t = { id: snowflake } + +val write_snowflake : + Bi_outbuf.t -> snowflake -> unit + (** Output a JSON value of type {!snowflake}. *) + +val string_of_snowflake : + ?len:int -> snowflake -> string + (** Serialize a value of type {!snowflake} + into a JSON string. + @param len specifies the initial length + of the buffer used internally. + Default: 1024. *) + +val read_snowflake : + Yojson.Safe.lexer_state -> Lexing.lexbuf -> snowflake + (** Input JSON data of type {!snowflake}. *) + +val snowflake_of_string : + string -> snowflake + (** Deserialize JSON data of type {!snowflake}. *) + +val write_t : + Bi_outbuf.t -> t -> unit + (** Output a JSON value of type {!t}. *) + +val string_of_t : + ?len:int -> t -> string + (** Serialize a value of type {!t} + into a JSON string. + @param len specifies the initial length + of the buffer used internally. + Default: 1024. *) + +val read_t : + Yojson.Safe.lexer_state -> Lexing.lexbuf -> t + (** Input JSON data of type {!t}. *) + +val t_of_string : + string -> t + (** Deserialize JSON data of type {!t}. *) + |