pub struct FileLocation { /* private fields */ }Expand description
A stored file’s fixed location: the uploader, the stored object’s id and the file’s key. Equality compares the whole text, so another object or key is another location. Diagnostics never show the key.
Implementations§
Source§impl FileLocation
impl FileLocation
Sourcepub fn uploader(&self) -> DeviceId
pub fn uploader(&self) -> DeviceId
The device that uploaded the bytes, which owns deleting them.
Sourcepub fn object(&self) -> ObjectId
pub fn object(&self) -> ObjectId
The stored object’s id, the last part of its path
<store>/files/<uploader>/<object>.
Sourcepub fn path(&self, store: StoreId) -> ObjectPath
pub fn path(&self, store: StoreId) -> ObjectPath
The stored object’s path in store.
Trait Implementations§
Source§impl Clone for FileLocation
impl Clone for FileLocation
Source§fn clone(&self) -> FileLocation
fn clone(&self) -> FileLocation
Returns a duplicate 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 FileLocation
impl Debug for FileLocation
Source§impl FileLocationKey for FileLocation
impl FileLocationKey for FileLocation
Source§impl PartialEq for FileLocation
impl PartialEq for FileLocation
Auto Trait Implementations§
impl Freeze for FileLocation
impl RefUnwindSafe for FileLocation
impl Send for FileLocation
impl Sync for FileLocation
impl Unpin for FileLocation
impl UnsafeUnpin for FileLocation
impl UnwindSafe for FileLocation
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