pub struct File {
pub name: String,
pub media: String,
pub size: i64,
pub url: String,
}Expand description
A file a person handed the window: dropped on it, or chosen in a chooser. Its bytes are in the
device’s content store, and the value is what the runtime’s File reads: its name, its media
type, its size and the content address its bytes are at.
Fields§
§name: StringWhat the person’s file is called, extension included (Q3 plan.md).
media: StringIts media type (text/markdown).
size: i64How many bytes its content is.
url: StringWhere its bytes are: a content address (tilo-blob://<hash>).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for File
impl<'de> Deserialize<'de> for File
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for File
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Forget for File
impl Freeze for File
impl Move for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
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