pub struct ViewerTarget {
pub id: String,
pub kind: String,
pub requires_project_directory: bool,
pub runtime_missing: bool,
pub default_candidate: bool,
pub availability: LaunchAvailability,
pub unavailable_reason: Option<String>,
pub recent_project_directories: Vec<String>,
}Fields§
§id: String§kind: String§requires_project_directory: bool§runtime_missing: boolWhether this target’s runtime (Docker, Podman) is not installed on the host running the daemon. That is permanent for the host, so pickers leave the target out and a request that names it is refused. A host that merely did not answer is not this; it stays listed.
default_candidate: boolWhether this target is a default candidate that Mjolnir supplies
(Config::with_local_targets) and the user did not write in
config.toml. A default candidate whose runtime is missing is listed
nowhere; a configured one stays listed as unavailable.
availability: LaunchAvailabilityWhether the host’s last check answered, from the same classifier as
/api/v1/options. Unknown until the capacity poller has run.
A short sentence for a person when availability is Unavailable.
recent_project_directories: Vec<String>Recent raw project directories for this target’s physical host. Managed targets intentionally publish an empty list because they select a configured bundle rather than a host checkout.
Trait Implementations§
Source§impl Clone for ViewerTarget
impl Clone for ViewerTarget
Source§impl Debug for ViewerTarget
impl Debug for ViewerTarget
Source§impl<'de> Deserialize<'de> for ViewerTarget
impl<'de> Deserialize<'de> for ViewerTarget
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 ViewerTarget
Source§impl PartialEq for ViewerTarget
impl PartialEq for ViewerTarget
Source§impl Serialize for ViewerTarget
impl Serialize for ViewerTarget
impl StructuralPartialEq for ViewerTarget
Auto Trait Implementations§
impl Freeze for ViewerTarget
impl RefUnwindSafe for ViewerTarget
impl Send for ViewerTarget
impl Sync for ViewerTarget
impl Unpin for ViewerTarget
impl UnsafeUnpin for ViewerTarget
impl UnwindSafe for ViewerTarget
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