pub struct Registry {Show 18 fields
pub data_dir: String,
pub session_age_seconds: u64,
pub cache_size: u64,
pub max_crate_size: u64,
pub max_db_connections: u32,
pub auth_required: bool,
pub required_crate_fields: Vec<String>,
pub new_crates_restricted: bool,
pub cookie_signing_key: Option<String>,
pub allow_ownerless_crates: bool,
pub token_cache_enabled: bool,
pub token_cache_ttl_seconds: u64,
pub token_cache_max_capacity: u64,
pub token_db_retry_count: u32,
pub token_db_retry_delay_ms: u64,
pub download_timeout_seconds: u64,
pub download_max_concurrent: usize,
pub download_counter_flush_seconds: u64,
}Fields§
§data_dir: StringData directory for crates, index, and database
session_age_seconds: u64Session timeout in seconds
cache_size: u64Cache size
max_crate_size: u64Max crate size in MB
max_db_connections: u32Max database connections (0 = unlimited)
auth_required: boolRequire authentication for all operations
required_crate_fields: Vec<String>Required crate fields (comma-separated)
new_crates_restricted: boolRestrict new crate uploads to admins
Cookie signing key (for multi-instance setups)
allow_ownerless_crates: boolAllow crates without owners
token_cache_enabled: boolEnable token cache
token_cache_ttl_seconds: u64Token cache TTL in seconds
token_cache_max_capacity: u64Token cache max capacity
token_db_retry_count: u32Token DB retry count
token_db_retry_delay_ms: u64Token DB retry delay in ms
download_timeout_seconds: u64Download request timeout in seconds (0 = disabled)
download_max_concurrent: usizeMax concurrent download requests (0 = unlimited)
download_counter_flush_seconds: u64Download counter flush interval in seconds (0 = flush every download)
Trait Implementations§
Source§impl ClapSerde for Registry
impl ClapSerde for Registry
Source§impl<'de> Deserialize<'de> for Registry
impl<'de> Deserialize<'de> for Registry
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
impl Eq for Registry
impl StructuralPartialEq for Registry
Auto Trait Implementations§
impl Freeze for Registry
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnsafeUnpin for Registry
impl UnwindSafe for Registry
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.