pub struct ServiceConfig {
pub cache: Option<ServiceCachePolicy>,
pub manifest: Option<PathBuf>,
pub bucket: Option<String>,
pub region: Option<String>,
pub bind: Option<SocketAddr>,
pub credentials: Option<Vec<String>>,
}Expand description
A named instance of the artifact service. Paths are relative to the config
file when loaded with from_path; CLI flags override these values.
Fields§
§cache: Option<ServiceCachePolicy>Optional server-only automatic cache maintenance. Absent means disabled.
manifest: Option<PathBuf>§bucket: Option<String>§region: Option<String>§bind: Option<SocketAddr>§credentials: Option<Vec<String>>None inherits the configured/default chain. An explicit list selects
only those named credentials, without ambient credential fallback.
Trait Implementations§
Source§impl Clone for ServiceConfig
impl Clone for ServiceConfig
Source§impl Debug for ServiceConfig
impl Debug for ServiceConfig
Source§impl Default for ServiceConfig
impl Default for ServiceConfig
Source§impl<'de> Deserialize<'de> for ServiceConfig
impl<'de> Deserialize<'de> for ServiceConfig
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
Auto Trait Implementations§
impl Freeze for ServiceConfig
impl RefUnwindSafe for ServiceConfig
impl Send for ServiceConfig
impl Sync for ServiceConfig
impl Unpin for ServiceConfig
impl UnsafeUnpin for ServiceConfig
impl UnwindSafe for ServiceConfig
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