pub struct Settings {
pub setup: Setup,
pub registry: Registry,
pub docs: Docs,
pub proxy: Proxy,
pub log: Log,
pub local: Local,
pub origin: Origin,
pub postgresql: Postgresql,
pub s3: S3,
pub oauth2: OAuth2,
pub toolchain: Toolchain,
pub sources: SourceMap,
}Fields§
§setup: Setup§registry: Registry§docs: Docs§proxy: Proxy§log: Log§local: Local§origin: Origin§postgresql: Postgresql§s3: S3§oauth2: OAuth2§toolchain: Toolchain§sources: SourceMapTracks the source (default, toml, env, cli) for each setting.
Skipped in serde serialization - use SettingsResponse for API responses.
Implementations§
Source§impl Settings
impl Settings
pub fn bin_path(&self) -> PathBuf
pub fn doc_queue_path(&self) -> PathBuf
pub fn sqlite_path(&self) -> PathBuf
pub fn docs_path(&self) -> PathBuf
pub fn base_path(&self) -> PathBuf
pub fn crates_io_bin_path(&self) -> PathBuf
pub fn crates_io_path(&self) -> String
pub fn crates_path(&self) -> String
pub fn crates_path_or_bucket(&self) -> String
pub fn crates_io_path_or_bucket(&self) -> String
pub fn toolchain_path(&self) -> String
pub fn toolchain_path_or_bucket(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
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 Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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.