pub struct Entry {
pub uri: String,
pub size: u64,
pub is_file: bool,
}Expand description
A single entry returned by Storage::list.
uri is whatever the backend uses as its identifier — for FsStorage
it is a bare absolute path string (no file:// prefix), preserving
backward compatibility with package::read_dir. For S3Storage it is
an s3://bucket/key URI.
Fields§
§uri: String§size: u64§is_file: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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