pub struct ResourceView {
pub name: String,
pub kind: String,
pub status: ResourceStatus,
pub healthy: bool,
pub image: String,
pub started_at: Option<SystemTime>,
pub last_error: Option<String>,
}Expand description
Dashboard-friendly view of a single managed resource.
Fields§
§name: StringManifest-declared resource name.
kind: StringResource kind discriminant (postgres, redis, container, dockerfile).
status: ResourceStatusCoarse-grained status suitable for UI rendering.
healthy: boolWhether the resource passed its healthcheck.
image: StringContainer image reference, as resolved at start time.
started_at: Option<SystemTime>Wall-clock time at which the runtime accepted the start request.
last_error: Option<String>Last terminal failure reason, when applicable.
Trait Implementations§
Source§impl Clone for ResourceView
impl Clone for ResourceView
Source§fn clone(&self) -> ResourceView
fn clone(&self) -> ResourceView
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 ResourceView
impl Debug for ResourceView
Source§impl<'de> Deserialize<'de> for ResourceView
impl<'de> Deserialize<'de> for ResourceView
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
Source§impl PartialEq for ResourceView
impl PartialEq for ResourceView
Source§fn eq(&self, other: &ResourceView) -> bool
fn eq(&self, other: &ResourceView) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResourceView
impl Serialize for ResourceView
impl Eq for ResourceView
impl StructuralPartialEq for ResourceView
Auto Trait Implementations§
impl Freeze for ResourceView
impl RefUnwindSafe for ResourceView
impl Send for ResourceView
impl Sync for ResourceView
impl Unpin for ResourceView
impl UnsafeUnpin for ResourceView
impl UnwindSafe for ResourceView
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.