Struct nydus_api::http::BlobCacheEntryConfig
source · [−]pub struct BlobCacheEntryConfig {
pub id: String,
pub backend_type: String,
pub backend_config: Value,
pub cache_type: String,
pub cache_config: Value,
pub prefetch_config: BlobPrefetchConfig,
pub metadata_path: Option<String>,
}Expand description
Configuration information for a cached blob, corresponding to storage::FactoryConfig.
Fields
id: StringIdentifier for the blob cache configuration: corresponding to FactoryConfig::id.
backend_type: StringType of storage backend, corresponding to FactoryConfig::BackendConfig::backend_type.
backend_config: ValueConfiguration for storage backend, corresponding to FactoryConfig::BackendConfig::backend_config.
Possible value: LocalFsConfig, RegistryOssConfig.
cache_type: StringType of blob cache, corresponding to FactoryConfig::CacheConfig::cache_type.
Possible value: “fscache”, “filecache”.
cache_config: ValueConfiguration for blob cache, corresponding to FactoryConfig::CacheConfig::cache_config.
Possible value: FileCacheConfig, FsCacheConfig.
prefetch_config: BlobPrefetchConfigConfiguration for data prefetch.
metadata_path: Option<String>Optional file path for metadata blobs.
Trait Implementations
sourceimpl Clone for BlobCacheEntryConfig
impl Clone for BlobCacheEntryConfig
sourcefn clone(&self) -> BlobCacheEntryConfig
fn clone(&self) -> BlobCacheEntryConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BlobCacheEntryConfig
impl Debug for BlobCacheEntryConfig
sourceimpl Default for BlobCacheEntryConfig
impl Default for BlobCacheEntryConfig
sourcefn default() -> BlobCacheEntryConfig
fn default() -> BlobCacheEntryConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BlobCacheEntryConfig
impl<'de> Deserialize<'de> for BlobCacheEntryConfig
sourcefn 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
sourceimpl PartialEq<BlobCacheEntryConfig> for BlobCacheEntryConfig
impl PartialEq<BlobCacheEntryConfig> for BlobCacheEntryConfig
sourcefn eq(&self, other: &BlobCacheEntryConfig) -> bool
fn eq(&self, other: &BlobCacheEntryConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BlobCacheEntryConfig) -> bool
fn ne(&self, other: &BlobCacheEntryConfig) -> bool
This method tests for !=.
sourceimpl Serialize for BlobCacheEntryConfig
impl Serialize for BlobCacheEntryConfig
impl Eq for BlobCacheEntryConfig
impl StructuralEq for BlobCacheEntryConfig
impl StructuralPartialEq for BlobCacheEntryConfig
Auto Trait Implementations
impl RefUnwindSafe for BlobCacheEntryConfig
impl Send for BlobCacheEntryConfig
impl Sync for BlobCacheEntryConfig
impl Unpin for BlobCacheEntryConfig
impl UnwindSafe for BlobCacheEntryConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more