We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e835b2 commit 02fdf8cCopy full SHA for 02fdf8c
bindings/matrix-sdk-ffi/src/timeline/mod.rs
@@ -223,6 +223,23 @@ pub struct UploadParameters {
223
use_send_queue: bool,
224
}
225
226
+/// A source for uploading a file
227
+#[derive(uniffi::Enum)]
228
+pub enum UploadSource {
229
+ /// Upload source is a file on disk
230
+ File {
231
+ /// Path to file
232
+ filename: String,
233
+ },
234
+ /// Upload source is data in memory
235
+ Data {
236
+ /// Data being uploaded
237
+ data: Vec<u8>,
238
+ /// Filename to associate with data
239
240
241
+}
242
+
243
#[derive(uniffi::Record)]
244
pub struct ReplyParameters {
245
/// The ID of the event to reply to.
0 commit comments