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§
Source§fn clone(&self) -> ShareContent
fn clone(&self) -> ShareContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn eq(&self, other: &ShareContent) -> bool
fn eq(&self, other: &ShareContent) -> bool
Tests for
self and other values to be equal, and is used by ==.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