pub struct ComputeSettings {
pub pools: HashMap<String, ComputePoolSelection>,
}Expand description
Deployment-time compute choices for Alien-managed compute pools.
Application source declares portable pool requirements. This settings object stores the concrete choices made for one deployment, such as the provider machine type and selected machine counts.
JSON schema
{
"description": "Deployment-time compute choices for Alien-managed compute pools.\n\nApplication source declares portable pool requirements. This settings\nobject stores the concrete choices made for one deployment, such as the\nprovider machine type and selected machine counts.",
"type": "object",
"properties": {
"pools": {
"description": "Selected compute choices keyed by pool ID.",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/ComputePoolSelection"
}
}
}
}Fields§
§pools: HashMap<String, ComputePoolSelection>Selected compute choices keyed by pool ID.
Implementations§
Source§impl ComputeSettings
impl ComputeSettings
pub fn builder() -> ComputeSettings
Trait Implementations§
Source§impl Clone for ComputeSettings
impl Clone for ComputeSettings
Source§fn clone(&self) -> ComputeSettings
fn clone(&self) -> ComputeSettings
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 ComputeSettings
impl Debug for ComputeSettings
Source§impl Default for ComputeSettings
impl Default for ComputeSettings
Source§impl<'de> Deserialize<'de> for ComputeSettings
impl<'de> Deserialize<'de> for ComputeSettings
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 From<&ComputeSettings> for ComputeSettings
impl From<&ComputeSettings> for ComputeSettings
Source§fn from(value: &ComputeSettings) -> Self
fn from(value: &ComputeSettings) -> Self
Converts to this type from the input type.
Source§impl From<ComputeSettings> for ComputeSettings
impl From<ComputeSettings> for ComputeSettings
Source§fn from(value: ComputeSettings) -> Self
fn from(value: ComputeSettings) -> Self
Converts to this type from the input type.
Source§impl Serialize for ComputeSettings
impl Serialize for ComputeSettings
Source§impl TryFrom<ComputeSettings> for ComputeSettings
impl TryFrom<ComputeSettings> for ComputeSettings
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ComputeSettings) -> Result<Self, ConversionError>
fn try_from(value: ComputeSettings) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ComputeSettings
impl RefUnwindSafe for ComputeSettings
impl Send for ComputeSettings
impl Sync for ComputeSettings
impl Unpin for ComputeSettings
impl UnsafeUnpin for ComputeSettings
impl UnwindSafe for ComputeSettings
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