mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
Add #[non_exhaustive]
on InputFile
This commit is contained in:
parent
8abf3863e5
commit
417b8eb1e1
2 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
### Added
|
||||
|
||||
- `#[non_exhaustive]` on `InputFile` since we may want to add new ways to send files in the future ([#49][pr49])
|
||||
- `MultipartPayload` for future proofing ([#49][pr49])
|
||||
- Support for `rustls` ([#24][pr24])
|
||||
- `#[must_use]` attr to payloads implemented by macro ([#22][pr22])
|
||||
|
|
|
@ -6,6 +6,7 @@ use std::{borrow::Cow, path::PathBuf};
|
|||
///
|
||||
/// [The official docs](https://core.telegram.org/bots/api#inputfile).
|
||||
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
|
||||
#[non_exhaustive]
|
||||
pub enum InputFile {
|
||||
File(PathBuf),
|
||||
Memory {
|
||||
|
|
Loading…
Reference in a new issue