File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ impl BlobContents for Blob {
66
66
///
67
67
/// `Blob`s can be created directly from `&str`, `&[u8]`, and `js_sys::ArrayBuffer`s using the
68
68
/// `Blob::new` or `Blob::new_with_options` functions.
69
- #[ derive( Debug ) ]
69
+ #[ derive( Debug , Clone , PartialEq ) ]
70
70
pub struct Blob {
71
71
inner : web_sys:: Blob ,
72
72
}
@@ -163,7 +163,7 @@ impl AsRef<JsValue> for Blob {
163
163
}
164
164
165
165
/// A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File).
166
- #[ derive( Debug ) ]
166
+ #[ derive( Debug , Clone , PartialEq ) ]
167
167
pub struct File {
168
168
// the trick here is that we know the contents of `inner` are a file, even though that type
169
169
// information is not stored. It is the same trick as is used in `web_sys`.
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ use crate::blob::File;
2
2
use wasm_bindgen:: prelude:: * ;
3
3
4
4
/// A list of files, for example from an `<input type="file">`.
5
+ #[ derive( Debug , Clone , PartialEq ) ]
5
6
pub struct FileList {
6
7
inner : Vec < File > ,
7
8
}
You can’t perform that action at this time.
0 commit comments