Commit graph

725 commits

Author SHA1 Message Date
Waffle
5f86362f17 Rename Method::METHOD => NAME, DynMethod::method => name 2019-11-06 23:49:56 +03:00
Waffle
c0953893b5 Add Bot::{get_updates, get_me, send_message, send_animation} 2019-11-05 19:45:56 +03:00
Waffle
fa220a6883 Add reference implementation of payloads 2019-11-05 19:32:22 +03:00
Waffle
7e821f2401 Small fixes in derived traits and docs of ChatId, ReplyMarkup and ReplyMarkup-related structs 2019-11-05 19:27:03 +03:00
Waffle
56a33df68c Serialize into FormValue by ref 2019-11-05 19:25:57 +03:00
Waffle
f3d554c9a5 Remove derive Serialize for InputFile 2019-11-05 19:01:03 +03:00
Waffle
93344c5d06 Derive Deserialize and Serialize on InputFile 2019-11-05 18:57:30 +03:00
Waffle
b13472cbcd Remove some commented things 2019-11-05 18:56:52 +03:00
Waffle
80ad646869 Move Output type and method fn from dynamic::Payload to new DynMethod trait 2019-11-05 18:55:13 +03:00
Waffle
521eef7550 Remove old requests 2019-11-05 17:10:41 +03:00
Waffle
be11633d6e Make dynamic::Request _really_ dynamic (ooops) 2019-11-05 00:51:15 +03:00
Waffle
e2922199d4 Add some docs 2019-11-05 00:47:31 +03:00
Waffle
86f9e9911c Add #[must_use] on requests 2019-11-05 00:34:48 +03:00
Waffle
0b750f2ac1 Add dynamic::{Kind, Payload, Request} (they are needed for storing _some_ request with concrete output) 2019-11-05 00:28:47 +03:00
Waffle
b788da0608 Move modules to files 2019-11-05 00:06:52 +03:00
Waffle
7868d9c832 Add simple::{Payload, Request} 2019-11-05 00:00:26 +03:00
Waffle
b02f10e73c Move Output type and METHOD const from Payloads to Method trait 2019-11-04 23:56:54 +03:00
Waffle
4c2e8029a9 Add multipart::{Payload, Request} 2019-11-04 23:54:19 +03:00
Waffle
602d07623b Add json::{Payload, Request} 2019-11-04 23:48:38 +03:00
Waffle
0a36537aa5 Comment all the deprecated stuff 2019-11-04 22:45:14 +03:00
Temirkhan Myrzamadi
1462c71a87 Merge pull request #79 from telebofr/handles_type
Simplify 'type Handlers = ...' (dispatchers/filter/mod.rs)
2019-11-04 01:19:30 +06:00
Temirkhan Myrzamadi
1df08f02c7
Merge pull request #79 from telebofr/handles_type
Simplify 'type Handlers = ...' (dispatchers/filter/mod.rs)
2019-11-04 01:19:30 +06:00
Temirkhan Myrzamadi
a61b5b226c Oops 2019-11-04 01:03:56 +06:00
Temirkhan Myrzamadi
478cde4c3f Oops 2019-11-04 01:03:56 +06:00
Temirkhan Myrzamadi
401eb04fd2 Rework HandlerAndFilter::new 2019-11-04 01:03:04 +06:00
Temirkhan Myrzamadi
f8851eabff Rework HandlerAndFilter::new 2019-11-04 01:03:04 +06:00
Temirkhan Myrzamadi
890fa2d6ba Add FilterAndHandler::new 2019-11-03 19:33:24 +06:00
Temirkhan Myrzamadi
60391de28a Add FilterAndHandler::new 2019-11-03 19:33:24 +06:00
Temirkhan Myrzamadi
0cd0990232 Simplify 'type Handlers = ...' (dispatchers/filter/mod.rs) 2019-11-03 19:16:38 +06:00
Temirkhan Myrzamadi
89db95ef3f Simplify 'type Handlers = ...' (dispatchers/filter/mod.rs) 2019-11-03 19:16:38 +06:00
Temirkhan Myrzamadi
f6f0d6e6a8 Merge pull request #78 from telebofr/error_policy
Error policy
2019-11-02 14:33:07 +00:00
Temirkhan Myrzamadi
ce2e949cb1
Merge pull request #78 from telebofr/error_policy
Error policy
2019-11-02 14:33:07 +00:00
Temirkhan Myrzamadi
9472f5eaac Merge pull request #77 from telebofr/add_ignore_error_policies
Add `Ignore` and `IgnoreSafe` error policies.
2019-11-02 14:32:47 +00:00
Temirkhan Myrzamadi
66cbedae01
Merge pull request #77 from telebofr/add_ignore_error_policies
Add `Ignore` and `IgnoreSafe` error policies.
2019-11-02 14:32:47 +00:00
Waffle
0507dde230 Add newline at the end of the Cargo.toml 2019-11-02 17:16:54 +03:00
Waffle
ab9f2b99f1 Add newline at the end of the Cargo.toml 2019-11-02 17:16:54 +03:00
Waffle
c56e70ef7a Add Ignore and IgnoreSafe error policies. 2019-11-02 17:15:13 +03:00
Waffle
5c73af4a6f Add Ignore and IgnoreSafe error policies. 2019-11-02 17:15:13 +03:00
Temirkhan Myrzamadi
0097ef78f0 Merge pull request #76 from telebofr/fix_error_policy_by_hand_implementing
Fix `ErrorPolicy` by implementing trait on all `Fn() -> Fut` by-hands…
2019-11-02 14:12:03 +00:00
Temirkhan Myrzamadi
49f1cfd4f3
Merge pull request #76 from telebofr/fix_error_policy_by_hand_implementing
Fix `ErrorPolicy` by implementing trait on all `Fn() -> Fut` by-hands…
2019-11-02 14:12:03 +00:00
Waffle
636b6af9ad Fix indent for where 2019-11-02 16:50:32 +03:00
Waffle
4423a992c0 Fix indent for where 2019-11-02 16:50:32 +03:00
Temirkhan Myrzamadi
4cd9c56622 Merge pull request #73 from telebofr/cows_for_form_builder
little simplification/optimization (use Cow in `FormBuilder`)
2019-11-02 13:32:58 +00:00
Temirkhan Myrzamadi
80d1935e0e
Merge pull request #73 from telebofr/cows_for_form_builder
little simplification/optimization (use Cow in `FormBuilder`)
2019-11-02 13:32:58 +00:00
Waffle
08ebb3cc01 Fix ErrorPolicy by implementing trait on all Fn() -> Fut by-hands (and some related small fixes) 2019-11-02 15:55:54 +03:00
Waffle
3f2d049c22 Fix ErrorPolicy by implementing trait on all Fn() -> Fut by-hands (and some related small fixes) 2019-11-02 15:55:54 +03:00
Waffle Lapkin
06c44831b6 Merge branch 'dev' into cows_for_form_builder 2019-11-02 02:12:34 +03:00
Waffle Lapkin
31c9a44276
Merge branch 'dev' into cows_for_form_builder 2019-11-02 02:12:34 +03:00
Waffle
5b0f8e8c0e little simplification/optimization (use Cow in FormBuilder
)
2019-11-02 02:10:39 +03:00
Temirkhan Myrzamadi
ea2a2c83d8 An another try to implement ErrorPolicy for FnMut 2019-11-01 22:09:27 +06:00