pub struct RawFileData {
pub mime_type: Mime,
pub name: String,
pub last_modified: Tm,
pub size: u64,
pub is_file: bool,
}
Expand description
Information about a file available through RFSAPI.
Fields§
§mime_type: Mime
File’s determined MIME type.
Always valid, but possibly garbage for directories.
Recommended value for directories: "text/directory"
.
name: String
File’s name, which can be used to navigate to it.
last_modified: Tm
File’s last modification time, as returned by the FS.
size: u64
File size in bytes.
Possibly garbage for directories.
Recommended value for directories: 0
.
is_file: bool
Whether the file is a file.
Trait Implementations§
Source§impl Clone for RawFileData
impl Clone for RawFileData
Source§fn clone(&self) -> RawFileData
fn clone(&self) -> RawFileData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RawFileData
impl Debug for RawFileData
Source§impl<'de> Deserialize<'de> for RawFileData
impl<'de> Deserialize<'de> for RawFileData
Source§fn deserialize<D: Deserializer<'de>>(
deserializer: D,
) -> Result<RawFileData, D::Error>
fn deserialize<D: Deserializer<'de>>( deserializer: D, ) -> Result<RawFileData, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for RawFileData
impl Hash for RawFileData
Source§impl Ord for RawFileData
impl Ord for RawFileData
Source§fn cmp(&self, other: &RawFileData) -> Ordering
fn cmp(&self, other: &RawFileData) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RawFileData
impl PartialEq for RawFileData
Source§impl PartialOrd for RawFileData
impl PartialOrd for RawFileData
Source§impl Serialize for RawFileData
impl Serialize for RawFileData
impl Eq for RawFileData
impl StructuralPartialEq for RawFileData
Auto Trait Implementations§
impl Freeze for RawFileData
impl RefUnwindSafe for RawFileData
impl Send for RawFileData
impl Sync for RawFileData
impl Unpin for RawFileData
impl UnwindSafe for RawFileData
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