pub struct ReconstructionCacheKey { /* private fields */ }Expand description
Stable cache key for one file reconstruction response.
Implementations§
Source§impl ReconstructionCacheKey
impl ReconstructionCacheKey
Sourcepub fn latest(file_id: &str, repository_scope: Option<&RepositoryScope>) -> Self
pub fn latest(file_id: &str, repository_scope: Option<&RepositoryScope>) -> Self
Creates a cache key for the latest visible reconstruction of one file.
Sourcepub fn version(
file_id: &str,
content_hash: &str,
repository_scope: Option<&RepositoryScope>,
) -> Self
pub fn version( file_id: &str, content_hash: &str, repository_scope: Option<&RepositoryScope>, ) -> Self
Creates a cache key for one immutable file version.
Sourcepub fn content_hash(&self) -> Option<&str>
pub fn content_hash(&self) -> Option<&str>
Returns the optional immutable content hash.
Sourcepub const fn repository_scope(&self) -> Option<&RepositoryScopeCacheKey>
pub const fn repository_scope(&self) -> Option<&RepositoryScopeCacheKey>
Returns the optional repository scope.
Trait Implementations§
Source§impl Clone for ReconstructionCacheKey
impl Clone for ReconstructionCacheKey
Source§fn clone(&self) -> ReconstructionCacheKey
fn clone(&self) -> ReconstructionCacheKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReconstructionCacheKey
impl Debug for ReconstructionCacheKey
impl Eq for ReconstructionCacheKey
Source§impl Hash for ReconstructionCacheKey
impl Hash for ReconstructionCacheKey
Source§impl PartialEq for ReconstructionCacheKey
impl PartialEq for ReconstructionCacheKey
Source§fn eq(&self, other: &ReconstructionCacheKey) -> bool
fn eq(&self, other: &ReconstructionCacheKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReconstructionCacheKey
Auto Trait Implementations§
impl Freeze for ReconstructionCacheKey
impl RefUnwindSafe for ReconstructionCacheKey
impl Send for ReconstructionCacheKey
impl Sync for ReconstructionCacheKey
impl Unpin for ReconstructionCacheKey
impl UnsafeUnpin for ReconstructionCacheKey
impl UnwindSafe for ReconstructionCacheKey
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