pub struct Daemon {Show 14 fields
pub id: String,
pub links: Vec<ResourceRef>,
pub public_endpoints: Vec<PublicEndpoint>,
pub health_check: Option<HealthCheck>,
pub cluster: Option<String>,
pub permissions: String,
pub code: DaemonCode,
pub cpu: ResourceSpec,
pub memory: ResourceSpec,
pub pool: Option<String>,
pub command: Option<Vec<String>>,
pub runtime: Option<DaemonRuntime>,
pub environment: HashMap<String, String>,
pub commands_enabled: bool,
}Fields§
§id: String§links: Vec<ResourceRef>§public_endpoints: Vec<PublicEndpoint>Public endpoints exposed by the daemon.
health_check: Option<HealthCheck>HTTP health check for public daemon endpoint load balancers.
cluster: Option<String>ComputeCluster resource ID that this daemon runs on for managed cloud compute backends. Kubernetes and Local runtimes ignore this field.
permissions: String§code: DaemonCode§cpu: ResourceSpecCPU resource requirements for each daemon instance.
memory: ResourceSpecMemory resource requirements for each daemon instance.
pool: Option<String>Capacity group/pool to run on for backends that expose machine pools.
command: Option<Vec<String>>Command to override the image default.
runtime: Option<DaemonRuntime>Optional backend runtime settings for trusted daemons.
These settings are intended for daemon-style infrastructure that must operate on the host. Backends that do not support a setting may reject it during provisioning.
environment: HashMap<String, String>§commands_enabled: boolImplementations§
Source§impl Daemon
impl Daemon
Sourcepub fn new(id: String) -> DaemonBuilder
pub fn new(id: String) -> DaemonBuilder
Create an instance of Daemon using the builder syntax
Source§impl Daemon
impl Daemon
pub const RESOURCE_TYPE: ResourceType
pub fn get_permissions(&self) -> &str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Daemon
impl<'de> Deserialize<'de> for Daemon
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
impl Eq for Daemon
Source§impl ResourceDefinition for Daemon
impl ResourceDefinition for Daemon
Source§fn get_resource_type(&self) -> ResourceType
fn get_resource_type(&self) -> ResourceType
Returns the resource type for this instance
Source§fn get_dependencies(&self) -> Vec<ResourceRef>
fn get_dependencies(&self) -> Vec<ResourceRef>
Returns the list of other resources this resource depends on
Source§fn get_permissions(&self) -> Option<&str>
fn get_permissions(&self) -> Option<&str>
Returns the permission profile name for this resource, if it has one. Read more
Source§fn validate_update(&self, new_config: &dyn ResourceDefinition) -> Result<()>
fn validate_update(&self, new_config: &dyn ResourceDefinition) -> Result<()>
Validates if an update from the current configuration to a new configuration is allowed
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Provides mutable access to the underlying concrete type for downcasting
Source§fn box_clone(&self) -> Box<dyn ResourceDefinition>
fn box_clone(&self) -> Box<dyn ResourceDefinition>
Creates a boxed clone of this resource definition
Source§fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
For equality comparison between resource definitions
Source§fn to_json_value(&self) -> Result<Value>
fn to_json_value(&self) -> Result<Value>
Serialize this resource to a JSON value (without the “type” tag - that’s added by Resource)
impl StructuralPartialEq for Daemon
Auto Trait Implementations§
impl Freeze for Daemon
impl RefUnwindSafe for Daemon
impl Send for Daemon
impl Sync for Daemon
impl Unpin for Daemon
impl UnsafeUnpin for Daemon
impl UnwindSafe for Daemon
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,
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
Compare self to
key and return true if they are equal.