pub struct EnvironmentInfo {
pub name: String,
pub state: String,
pub provider: String,
pub created_at: DateTime<Utc>,
pub infrastructure: Option<InfrastructureInfo>,
pub services: Option<ServiceInfo>,
pub prometheus: Option<PrometheusInfo>,
pub grafana: Option<GrafanaInfo>,
pub docker_images: DockerImagesInfo,
pub state_name: String,
}Expand description
Environment information for display purposes
This DTO contains all information about an environment that can be displayed to the user. It is state-aware and contains optional fields that are populated based on the environment’s current state.
Fields§
§name: StringName of the environment
state: StringCurrent state of the environment (e.g., “Created”, “Provisioned”, “Running”)
provider: StringProvider name (e.g., “LXD”, “Hetzner Cloud”)
created_at: DateTime<Utc>When the environment was created
infrastructure: Option<InfrastructureInfo>Infrastructure details, available after provisioning
services: Option<ServiceInfo>Tracker service information, available for Released/Running states
prometheus: Option<PrometheusInfo>Prometheus metrics service information, available for Released/Running states
grafana: Option<GrafanaInfo>Grafana visualization service information, available for Released/Running states
docker_images: DockerImagesInfoDocker image references for all services in the deployment stack
state_name: StringInternal state name (e.g., “created”, “provisioned”) for guidance generation
Implementations§
Source§impl EnvironmentInfo
impl EnvironmentInfo
Sourcepub fn new(
name: String,
state: String,
provider: String,
created_at: DateTime<Utc>,
docker_images: DockerImagesInfo,
state_name: String,
) -> Self
pub fn new( name: String, state: String, provider: String, created_at: DateTime<Utc>, docker_images: DockerImagesInfo, state_name: String, ) -> Self
Create a new EnvironmentInfo
Sourcepub fn with_infrastructure(self, infrastructure: InfrastructureInfo) -> Self
pub fn with_infrastructure(self, infrastructure: InfrastructureInfo) -> Self
Set infrastructure information
Sourcepub fn with_services(self, services: ServiceInfo) -> Self
pub fn with_services(self, services: ServiceInfo) -> Self
Set service information
Sourcepub fn with_prometheus(self, prometheus: PrometheusInfo) -> Self
pub fn with_prometheus(self, prometheus: PrometheusInfo) -> Self
Set Prometheus information
Sourcepub fn with_grafana(self, grafana: GrafanaInfo) -> Self
pub fn with_grafana(self, grafana: GrafanaInfo) -> Self
Set Grafana information
Trait Implementations§
Source§impl Clone for EnvironmentInfo
impl Clone for EnvironmentInfo
Source§impl Debug for EnvironmentInfo
impl Debug for EnvironmentInfo
Source§impl Render<EnvironmentInfo> for JsonView
impl Render<EnvironmentInfo> for JsonView
Source§fn render(data: &EnvironmentInfo) -> Result<String, ViewRenderError>
fn render(data: &EnvironmentInfo) -> Result<String, ViewRenderError>
data into a string representation. Read moreSource§impl Render<EnvironmentInfo> for TextView
impl Render<EnvironmentInfo> for TextView
Source§fn render(info: &EnvironmentInfo) -> Result<String, ViewRenderError>
fn render(info: &EnvironmentInfo) -> Result<String, ViewRenderError>
data into a string representation. Read moreAuto Trait Implementations§
impl Freeze for EnvironmentInfo
impl RefUnwindSafe for EnvironmentInfo
impl Send for EnvironmentInfo
impl Sync for EnvironmentInfo
impl Unpin for EnvironmentInfo
impl UnsafeUnpin for EnvironmentInfo
impl UnwindSafe for EnvironmentInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request