pub struct VersionedPath(/* private fields */);Expand description
Wrapper for versioned file paths.
Represents a logical file name that resolves to the latest UUID-versioned file in a directory (e.g., “config.json” → “uploads/config.json/{latest-uuid}”).
Implementations§
Source§impl VersionedPath
impl VersionedPath
Sourcepub fn logical(&self) -> &str
pub fn logical(&self) -> &str
Returns the logical name of this versioned path.
This is the directory name, not the UUID filename.
Trait Implementations§
Source§impl Clone for VersionedPath
impl Clone for VersionedPath
Source§fn clone(&self) -> VersionedPath
fn clone(&self) -> VersionedPath
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 ComposeSchema for VersionedPath
impl ComposeSchema for VersionedPath
Source§impl Debug for VersionedPath
impl Debug for VersionedPath
Source§impl<'de> Deserialize<'de> for VersionedPath
impl<'de> Deserialize<'de> for VersionedPath
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
Source§impl Hash for VersionedPath
impl Hash for VersionedPath
Source§impl PartialEq for VersionedPath
impl PartialEq for VersionedPath
Source§impl Serialize for VersionedPath
impl Serialize for VersionedPath
Source§impl ToSchema for VersionedPath
impl ToSchema for VersionedPath
impl Eq for VersionedPath
impl StructuralPartialEq for VersionedPath
Auto Trait Implementations§
impl Freeze for VersionedPath
impl RefUnwindSafe for VersionedPath
impl Send for VersionedPath
impl Sync for VersionedPath
impl Unpin for VersionedPath
impl UnwindSafe for VersionedPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.