pub struct ShareContent {
pub file_name: String,
pub mime_type: String,
pub bytes: Vec<u8>,
pub text: Option<String>,
}Expand description
A single file to share, with an optional accompanying message/subject.
Fields§
§file_name: StringSuggested file name shown to the user and used by the receiving app.
mime_type: StringMIME type of bytes (e.g. application/pdf, image/jpeg).
bytes: Vec<u8>File payload. Backends stage it to a temporary URL to share.
text: Option<String>Optional text/subject shared alongside the file.
Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more