blob: 8872d8901c3a7fb3c5aa3cfc1e494e3de21f7a47 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
(* Auto-generated from "embed.atd" *)
[@@@ocaml.warning "-27-32-35-39"]
type video = Embed_t.video = {
url: string option;
height: int option;
width: int option
}
type provider = Embed_t.provider = {
name: string option;
url: string option
}
type image = Embed_t.image = {
url: string option;
proxy_url: string option;
height: int option;
width: int option
}
type footer = Embed_t.footer = {
text: string;
icon_url: string option;
proxy_icon_url: string option
}
type field = Embed_t.field = {
name: string;
value: string;
inline: bool option
}
type t = Embed_t.t = {
title: string option;
kind: string option;
description: string option;
url: string option;
timestamp: string option;
colour: int option;
footer: footer option;
image: image option;
thumbnail: image option;
video: video option;
provider: provider option;
fields: field list option
}
val write_video :
Bi_outbuf.t -> video -> unit
(** Output a JSON value of type {!video}. *)
val string_of_video :
?len:int -> video -> string
(** Serialize a value of type {!video}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_video :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> video
(** Input JSON data of type {!video}. *)
val video_of_string :
string -> video
(** Deserialize JSON data of type {!video}. *)
val write_provider :
Bi_outbuf.t -> provider -> unit
(** Output a JSON value of type {!provider}. *)
val string_of_provider :
?len:int -> provider -> string
(** Serialize a value of type {!provider}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_provider :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> provider
(** Input JSON data of type {!provider}. *)
val provider_of_string :
string -> provider
(** Deserialize JSON data of type {!provider}. *)
val write_image :
Bi_outbuf.t -> image -> unit
(** Output a JSON value of type {!image}. *)
val string_of_image :
?len:int -> image -> string
(** Serialize a value of type {!image}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_image :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> image
(** Input JSON data of type {!image}. *)
val image_of_string :
string -> image
(** Deserialize JSON data of type {!image}. *)
val write_footer :
Bi_outbuf.t -> footer -> unit
(** Output a JSON value of type {!footer}. *)
val string_of_footer :
?len:int -> footer -> string
(** Serialize a value of type {!footer}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_footer :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> footer
(** Input JSON data of type {!footer}. *)
val footer_of_string :
string -> footer
(** Deserialize JSON data of type {!footer}. *)
val write_field :
Bi_outbuf.t -> field -> unit
(** Output a JSON value of type {!field}. *)
val string_of_field :
?len:int -> field -> string
(** Serialize a value of type {!field}
into a JSON string.
@param len specifies the initial length
of the buffer used internally.
Default: 1024. *)
val read_field :
Yojson.Safe.lexer_state -> Lexing.lexbuf -> field
(** Input JSON data of type {!field}. *)
val field_of_string :
string -> field
(** Deserialize JSON data of type {!field}. *)
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}. *)
|