pub struct LaunchOptions {
pub revision: u64,
pub profiles: Vec<LaunchProfile>,
pub targets: Vec<LaunchTarget>,
pub bundles: Vec<LaunchBundle>,
pub hosts: Vec<LaunchHost>,
pub default: Option<LaunchDefault>,
}Expand description
What a caller may choose when it starts a session, and which pair to use when it chooses nothing.
Served by GET /api/v1/options so a caller that has never read
config.toml can enumerate the profiles and targets this daemon knows,
learn whether each host answered its last check, and read the remembered
default. It is the public projection in server/viewer_types.rs, narrowed
to what a launch decision needs: no harness home, no SSH host or key, no
container environment, no AWS detail, and no controller-side path.
Fields§
§revision: u64The projection revision these lists came from. Two reads carrying the same revision describe the same configuration, so a caller can build a form without mixing halves of two different worlds.
profiles: Vec<LaunchProfile>§targets: Vec<LaunchTarget>§bundles: Vec<LaunchBundle>§hosts: Vec<LaunchHost>One entry per host that has published a capacity reading. The label is how a person names the host; it is never a locator or an address.
default: Option<LaunchDefault>The pair the user last saved as their default, which the first setup also becomes. Absent when nothing has ever been saved, and never an error: a caller that cannot read a preference still has the lists.
Trait Implementations§
Source§impl Clone for LaunchOptions
impl Clone for LaunchOptions
Source§impl Debug for LaunchOptions
impl Debug for LaunchOptions
Source§impl<'de> Deserialize<'de> for LaunchOptions
impl<'de> Deserialize<'de> for LaunchOptions
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>,
impl Eq for LaunchOptions
Source§impl PartialEq for LaunchOptions
impl PartialEq for LaunchOptions
Source§impl Serialize for LaunchOptions
impl Serialize for LaunchOptions
impl StructuralPartialEq for LaunchOptions
Auto Trait Implementations§
impl Freeze for LaunchOptions
impl RefUnwindSafe for LaunchOptions
impl Send for LaunchOptions
impl Sync for LaunchOptions
impl Unpin for LaunchOptions
impl UnsafeUnpin for LaunchOptions
impl UnwindSafe for LaunchOptions
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
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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more