pub struct RemoteConfig {
pub base_url: String,
pub template: String,
pub token_env: String,
pub idle_after_hours: Option<f64>,
}Expand description
The validated, complete remote config — every field required. Produced
ONLY by RemoteConfig::require, so a RemoteWorkspaceProvider can
never exist with partial remote config.
Fields§
§base_url: String§template: String§token_env: StringNAME of the env var holding the substrate token — never the value.
idle_after_hours: Option<f64>Substrate-side idle policy VALUE (workspace.remote.idleAfterHours,
ticket workspace-idle-hibernate) — passed through to the substrate
at provision when set; the SUBSTRATE owns scheduling/execution of the
policy (kranz never schedules VMs).
Implementations§
Source§impl RemoteConfig
impl RemoteConfig
Sourcepub fn require(config: Option<&RemoteWorkspaceConfig>) -> Result<RemoteConfig>
pub fn require(config: Option<&RemoteWorkspaceConfig>) -> Result<RemoteConfig>
Validate the additive mission config into a complete remote config, failing CLOSED with the first missing key named (owner: operator) — never a silent fallback to local. Pure: no env, no network.
Trait Implementations§
Source§impl Clone for RemoteConfig
impl Clone for RemoteConfig
Source§fn clone(&self) -> RemoteConfig
fn clone(&self) -> RemoteConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RemoteConfig
impl Debug for RemoteConfig
Source§impl PartialEq for RemoteConfig
impl PartialEq for RemoteConfig
impl StructuralPartialEq for RemoteConfig
Auto Trait Implementations§
impl Freeze for RemoteConfig
impl RefUnwindSafe for RemoteConfig
impl Send for RemoteConfig
impl Sync for RemoteConfig
impl Unpin for RemoteConfig
impl UnsafeUnpin for RemoteConfig
impl UnwindSafe for RemoteConfig
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