Jimmy Cuadra
fb90929aa1
Merge pull request #19 from neosam/macros
...
Make aliases optional for global rooms query.
2017-06-19 17:59:24 -07:00
Simon Goller
6f9cb39506
Make aliases optional for global rooms query.
...
The server response cannot be deserialized because the aliases
attribute can be missing. Wrapped the alias attribute with an
Option to fix the issue.
2017-06-18 18:20:12 +02:00
Jimmy Cuadra
5d5e70cf3e
Merge pull request #18 from jplatte/macros
...
Bump dependency versions
2017-06-14 03:16:04 -07:00
Jonas Platte
f9309e652a
Bump dependency versions
2017-06-14 11:57:06 +02:00
Jimmy Cuadra
f5a935384e
Merge pull request #1 from jplatte/patch-2
...
Bump dependency versions
2017-06-14 02:53:23 -07:00
Jonas Platte
fb2082237b
Bump dependency versions
2017-06-14 10:21:15 +02:00
Jimmy Cuadra
211cf5e353
Merge pull request #11 from jplatte/hyper-0.11
...
Bump dependency versions
2017-06-14 01:16:00 -07:00
Jonas Platte
dd62620a4b
Bump dependency versions
2017-06-14 09:49:16 +02:00
Jimmy Cuadra
4ef45b3022
Bump ruma-events and ruma-signatures.
2017-06-01 17:55:24 -07:00
Jimmy Cuadra
c3fd65c650
Bump version to 0.9.0.
2017-06-01 17:46:05 -07:00
Jimmy Cuadra
42439ea608
Merge pull request #13 from neosam/master
...
Use ruma-signatures 0.4 instead of 0.3.
2017-06-01 09:25:30 -07:00
Simon Goller
03dc54d7db
Use ruma-signatures 0.4 instead of 0.3.
2017-06-01 18:08:22 +02:00
Jimmy Cuadra
392dc69b17
Use ruma-api-macros for the filter endpoints.
2017-05-21 02:19:54 -07:00
Jimmy Cuadra
35362e78a6
Add newtype body field support for responses.
2017-05-21 01:52:16 -07:00
bors[bot]
bdb7468bcb
Merge #25
...
25: Deserialize () from input without key/value pairs. r=nox
Currently there's no input that can be deserialized to `()`, this changes the crate to support deserializing strings without any key/value pair to a `()` (such as the empty string, or just `"&"`).
Would be great if you could release a patch for this, I have a project that needs this behavior.
EDIT: To expand on my use case, I have a trait which parses the body of an HTTP Request into a type (e.g. for a `POST` request). However, this is abstract over HTTP methods, and its expected to be able to parse an empty body (e.g. from a `GET` request) into `()`.
2017-05-21 07:34:36 +00:00
Without Boats
ecb91cfcd7
Deserialize () from input without key/value pairs.
2017-05-21 00:28:04 -07:00
Jimmy Cuadra
dfb45a762f
Use ruma-api-macros for the directory endpoints.
2017-05-19 21:25:18 -07:00
Jimmy Cuadra
4b728514ca
Use ruma-api-macros for the context endpoints.
2017-05-19 21:09:58 -07:00
Jimmy Cuadra
a40ec4e07f
Use ruma-api-macros for the contact endpoints.
2017-05-19 21:01:25 -07:00
Jimmy Cuadra
088aed514e
Use ruma-api-macros for the config endpoints.
2017-05-19 06:02:28 -07:00
Jimmy Cuadra
58fab938b0
Add newtype body fields to the hyper request.
2017-05-19 05:58:04 -07:00
Jimmy Cuadra
90c3654254
Allow a single field to be specified as the entire request body.
2017-05-19 05:45:23 -07:00
Jimmy Cuadra
11985ed337
Use ruma-api-macros for the alias endpoints.
2017-05-19 04:51:31 -07:00
Jimmy Cuadra
422043cf51
Use ruma-api-macros for the account endpoints.
2017-05-14 17:58:15 -07:00
Jimmy Cuadra
fc46b9a58b
Silence warnings for conditionally used traits and variables.
2017-05-14 17:56:55 -07:00
Jimmy Cuadra
44164a7299
Derive serde traits for the main request/response structs.
2017-05-14 17:36:57 -07:00
Jimmy Cuadra
24370f3d4c
Change syntax for meta items and remove them after use.
2017-05-14 17:34:21 -07:00
Jimmy Cuadra
f624e1ff50
Yield only body fields from RequestBodyFields.
2017-05-14 16:41:25 -07:00
Jimmy Cuadra
3893ab0022
Add commas after struct fields.
2017-05-14 16:40:53 -07:00
Jimmy Cuadra
30fbb891fd
Use ruma-api-macros for the versions endpoint.
2017-05-14 04:19:34 -07:00
Jimmy Cuadra
10f4647037
Use a Git version of ruma-api.
2017-05-14 04:13:07 -07:00
Jimmy Cuadra
c55c71dd56
Use FutureFrom instead of TryFrom for responses.
2017-05-14 04:11:35 -07:00
Jimmy Cuadra
3635fe51ac
Use FutureFrom instead of TryFrom for responses.
2017-05-14 04:00:54 -07:00
Jimmy Cuadra
1a56b35f17
Propagate errors instead of panicking.
2017-05-14 03:12:47 -07:00
Jimmy Cuadra
517235b3e9
Add an error type.
2017-05-14 02:48:35 -07:00
Jimmy Cuadra
1d1ae0410e
Obfuscate imported traits and use the Endpoint trait to access metadata for hyper request construction.
2017-05-13 23:14:07 -07:00
Jimmy Cuadra
b6064d1e01
Use the real endpoint path for the hyper request.
2017-05-13 23:09:50 -07:00
Jimmy Cuadra
13c9daf21b
Deserialize response body.
2017-05-13 23:05:58 -07:00
Jimmy Cuadra
f48f1c1bee
Add request body to hyper requests.
2017-05-13 23:03:22 -07:00
Jimmy Cuadra
ef3ee2d2f3
Add RequestBody and ResponseBody structs.
2017-05-13 18:30:19 -07:00
Jimmy Cuadra
06388333af
Implement ToTokens for Api, Request, and Response.
2017-05-13 18:16:43 -07:00
Jimmy Cuadra
029daf3e12
Split code into more modules.
2017-05-13 17:52:17 -07:00
Jimmy Cuadra
b1d5d50e91
Categorize response fields.
2017-05-13 17:22:53 -07:00
Jimmy Cuadra
187a236708
Categorize request fields.
2017-05-13 17:20:19 -07:00
Jimmy Cuadra
a3c855835a
Add methods for generating request and response types.
2017-05-13 02:02:40 -07:00
Jimmy Cuadra
27349e57ab
Add initial implementation of macro expansion.
2017-05-13 01:56:26 -07:00
Jimmy Cuadra
b1be0f411f
Add docs and remove unused code/imports.
2017-05-13 01:41:33 -07:00
Jimmy Cuadra
55d6b72a77
Add struct fields to Request and Response.
2017-05-13 01:27:55 -07:00
Jimmy Cuadra
446ced1267
Disable doctests.
2017-05-13 01:17:33 -07:00
Jimmy Cuadra
d0a35341a2
Use three block form for the macro, fix some bugs, construct metadata tokens.
2017-05-13 01:16:44 -07:00