From a31145845408fcbf1f76c4e6b725d81c55fe99f7 Mon Sep 17 00:00:00 2001 From: RustemB Date: Tue, 3 Sep 2019 13:49:11 +0500 Subject: [PATCH] InputFile --- src/core/types/input_file.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/core/types/input_file.rs diff --git a/src/core/types/input_file.rs b/src/core/types/input_file.rs new file mode 100644 index 00000000..5475c572 --- /dev/null +++ b/src/core/types/input_file.rs @@ -0,0 +1,8 @@ +use serde::Deserialize; + +#[derive(Debug, Deserialize, Hash, PartialEq, Eq)] +pub enum InputFile { + File(std::fs::File), + Url(String), + FileId(String), +}