pub struct Config {Show 13 fields
pub bind: SocketAddr,
pub storage_root: PathBuf,
pub public_url: Option<String>,
pub action_lifetime: u32,
pub gc_grace: Duration,
pub staging_max_age: Duration,
pub lock_max_age: Option<Duration>,
pub max_object_size: Option<u64>,
pub repo_quota: Option<u64>,
pub compression: Option<i32>,
pub encryption_key_file: Option<PathBuf>,
pub storage: Storage,
pub auth: Auth,
}Fields§
§bind: SocketAddr§storage_root: PathBuf§public_url: Option<String>§action_lifetime: u32§gc_grace: Duration§staging_max_age: Duration§lock_max_age: Option<Duration>§max_object_size: Option<u64>§repo_quota: Option<u64>§compression: Option<i32>§encryption_key_file: Option<PathBuf>§storage: Storage§auth: AuthImplementations§
Source§impl Config
impl Config
pub fn from_env() -> Self
pub fn base_url(&self, headers: &HeaderMap) -> String
pub fn object_url(&self, base: &str, ns: &Namespace, oid: &str) -> String
pub fn verify_url(&self, base: &str, ns: &Namespace) -> String
pub fn action(&self, href: String) -> Action
pub fn signed_action( &self, href: String, headers: Vec<(String, String)>, ) -> Action
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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