ayrat555 / frankenstein

Telegram bot API client for Rust
Do What The F*ck You Want To Public License
268 stars 28 forks source link

refactor!: flatten the module structure #208

Closed EdJoPaTo closed 1 month ago

EdJoPaTo commented 2 months ago

Traits and clients are now on the top level. Error and response structs are moved to their dedicated modules. Also, a bunch of doc comments are added so the https://docs.rs/frankenstein entry has somewhat better docs.

This is a part of the changes of #203

BREAKING CHANGE: old modules for them are gone and import is only possible from the top level now. Responses moved from frankenstein::api_traits::MethodResponse to frankenstein::response::MethodResponse (and are also re-exported on top level).

ayrat555 commented 1 month ago

@EdJoPaTo can you please fix conflicts?