pub struct Settings {
pub max_workspaces: u32,
pub sandbox_expiry: String,
pub sandbox_idle: String,
pub secret_refresh: String,
pub home_kind: Option<String>,
pub home_pool: Option<String>,
}Expand description
An org’s workspace settings.
Fields§
§max_workspaces: u32How many workspaces the org may have. One: the org’s box is a single place. Platform admins can lift it.
sandbox_expiry: StringA new sandbox’s lifetime (24h); at most 30 days.
sandbox_idle: StringHow long a sandbox may sit idle before it is reaped (2h), or
none.
secret_refresh: StringHow often the org’s workspaces’ secrets that are driver references
(vault/item/field) are checked for a new version (1h; at least
10s). A new one is written into the running workspaces.
home_kind: Option<String>volume or host: where new homes go, overriding the daemon
(host needs --workspace-home-root). Platform admins.
home_pool: Option<String>The storage pool new workspace homes go in (platform admins); unset:
the daemon’s --workspace-pool, else the org’s default pool.
Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.