pub struct File<'a> { /* private fields */ }Implementations§
Source§impl<'a> File<'a>
impl<'a> File<'a>
Sourcepub fn builder(
name: impl Into<Cow<'a, str>>,
last_modified: TimeSinceEpoch,
size: f64,
type_: impl Into<Cow<'a, str>>,
) -> FileBuilder<'a>
pub fn builder( name: impl Into<Cow<'a, str>>, last_modified: TimeSinceEpoch, size: f64, type_: impl Into<Cow<'a, str>>, ) -> FileBuilder<'a>
Creates a builder for this type with the required parameters:
name:last_modified: Timestampsize: Size in bytestype_:
pub fn name(&self) -> &str
Sourcepub fn last_modified(&self) -> &TimeSinceEpoch
pub fn last_modified(&self) -> &TimeSinceEpoch
Timestamp
pub fn type_(&self) -> &str
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for File<'a>
impl<'de, 'a> Deserialize<'de> for File<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for File<'a>
impl<'a> RefUnwindSafe for File<'a>
impl<'a> Send for File<'a>
impl<'a> Sync for File<'a>
impl<'a> Unpin for File<'a>
impl<'a> UnsafeUnpin for File<'a>
impl<'a> UnwindSafe for File<'a>
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