#[non_exhaustive]pub struct CustomEnvironmentSpec {
pub machine_spec: Option<MachineSpec>,
pub persistent_disk_spec: Option<PersistentDiskSpec>,
pub network_spec: Option<NetworkSpec>,
/* private fields */
}Expand description
Compute configuration to use for an execution job.
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.machine_spec: Option<MachineSpec>The specification of a single machine for the execution job.
persistent_disk_spec: Option<PersistentDiskSpec>The specification of a persistent disk to attach for the execution job.
network_spec: Option<NetworkSpec>The network configuration to use for the execution job.
Implementations§
Source§impl CustomEnvironmentSpec
impl CustomEnvironmentSpec
pub fn new() -> Self
Sourcepub fn set_machine_spec<T: Into<Option<MachineSpec>>>(self, v: T) -> Self
pub fn set_machine_spec<T: Into<Option<MachineSpec>>>(self, v: T) -> Self
Sets the value of machine_spec.
Sourcepub fn set_persistent_disk_spec<T: Into<Option<PersistentDiskSpec>>>(
self,
v: T,
) -> Self
pub fn set_persistent_disk_spec<T: Into<Option<PersistentDiskSpec>>>( self, v: T, ) -> Self
Sets the value of persistent_disk_spec.
Sourcepub fn set_network_spec<T: Into<Option<NetworkSpec>>>(self, v: T) -> Self
pub fn set_network_spec<T: Into<Option<NetworkSpec>>>(self, v: T) -> Self
Sets the value of network_spec.
Trait Implementations§
Source§impl Clone for CustomEnvironmentSpec
impl Clone for CustomEnvironmentSpec
Source§fn clone(&self) -> CustomEnvironmentSpec
fn clone(&self) -> CustomEnvironmentSpec
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 CustomEnvironmentSpec
impl Debug for CustomEnvironmentSpec
Source§impl Default for CustomEnvironmentSpec
impl Default for CustomEnvironmentSpec
Source§fn default() -> CustomEnvironmentSpec
fn default() -> CustomEnvironmentSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomEnvironmentSpecwhere
CustomEnvironmentSpec: Default,
impl<'de> Deserialize<'de> for CustomEnvironmentSpecwhere
CustomEnvironmentSpec: 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 CustomEnvironmentSpec
impl Message for CustomEnvironmentSpec
Source§impl PartialEq for CustomEnvironmentSpec
impl PartialEq for CustomEnvironmentSpec
Source§impl Serialize for CustomEnvironmentSpec
impl Serialize for CustomEnvironmentSpec
impl StructuralPartialEq for CustomEnvironmentSpec
Auto Trait Implementations§
impl Freeze for CustomEnvironmentSpec
impl RefUnwindSafe for CustomEnvironmentSpec
impl Send for CustomEnvironmentSpec
impl Sync for CustomEnvironmentSpec
impl Unpin for CustomEnvironmentSpec
impl UnwindSafe for CustomEnvironmentSpec
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