#[non_exhaustive]pub struct ResourceRuntimeSpec {
pub service_account_spec: Option<ServiceAccountSpec>,
pub ray_spec: Option<RaySpec>,
/* private fields */
}Expand description
Configuration for the runtime on a PersistentResource instance, including but not limited to:
- Service accounts used to run the workloads.
- Whether to make it a dedicated Ray Cluster.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.service_account_spec: Option<ServiceAccountSpec>Optional. Configure the use of workload identity on the PersistentResource
ray_spec: Option<RaySpec>Optional. Ray cluster configuration. Required when creating a dedicated RayCluster on the PersistentResource.
Implementations§
Source§impl ResourceRuntimeSpec
impl ResourceRuntimeSpec
pub fn new() -> Self
Sourcepub fn set_service_account_spec<T: Into<Option<ServiceAccountSpec>>>(
self,
v: T,
) -> Self
pub fn set_service_account_spec<T: Into<Option<ServiceAccountSpec>>>( self, v: T, ) -> Self
Sets the value of service_account_spec.
Trait Implementations§
Source§impl Clone for ResourceRuntimeSpec
impl Clone for ResourceRuntimeSpec
Source§fn clone(&self) -> ResourceRuntimeSpec
fn clone(&self) -> ResourceRuntimeSpec
Returns a copy of the value. Read more
1.0.0 · 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 ResourceRuntimeSpec
impl Debug for ResourceRuntimeSpec
Source§impl Default for ResourceRuntimeSpec
impl Default for ResourceRuntimeSpec
Source§fn default() -> ResourceRuntimeSpec
fn default() -> ResourceRuntimeSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceRuntimeSpecwhere
ResourceRuntimeSpec: Default,
impl<'de> Deserialize<'de> for ResourceRuntimeSpecwhere
ResourceRuntimeSpec: Default,
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 Message for ResourceRuntimeSpec
impl Message for ResourceRuntimeSpec
Source§impl PartialEq for ResourceRuntimeSpec
impl PartialEq for ResourceRuntimeSpec
Source§impl Serialize for ResourceRuntimeSpec
impl Serialize for ResourceRuntimeSpec
impl StructuralPartialEq for ResourceRuntimeSpec
Auto Trait Implementations§
impl Freeze for ResourceRuntimeSpec
impl RefUnwindSafe for ResourceRuntimeSpec
impl Send for ResourceRuntimeSpec
impl Sync for ResourceRuntimeSpec
impl Unpin for ResourceRuntimeSpec
impl UnwindSafe for ResourceRuntimeSpec
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