pub struct GoogleCloudRunV2InstanceSplit {
pub percent: Option<i32>,
pub revision: Option<String>,
pub type_: Option<String>,
}Expand description
Holds a single instance split entry for the Worker. Allocations can be done to a specific Revision name, or pointing to the latest Ready Revision.
This type is not used in any activity, and only used as part of another schema.
Fields§
§percent: Option<i32>Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
revision: Option<String>Revision to which to assign this portion of instances, if split allocation is by revision.
type_: Option<String>The allocation type for this instance split.
Trait Implementations§
Source§impl Clone for GoogleCloudRunV2InstanceSplit
impl Clone for GoogleCloudRunV2InstanceSplit
Source§fn clone(&self) -> GoogleCloudRunV2InstanceSplit
fn clone(&self) -> GoogleCloudRunV2InstanceSplit
Returns a duplicate 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 Default for GoogleCloudRunV2InstanceSplit
impl Default for GoogleCloudRunV2InstanceSplit
Source§fn default() -> GoogleCloudRunV2InstanceSplit
fn default() -> GoogleCloudRunV2InstanceSplit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleCloudRunV2InstanceSplit
impl<'de> Deserialize<'de> for GoogleCloudRunV2InstanceSplit
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 Part for GoogleCloudRunV2InstanceSplit
Auto Trait Implementations§
impl Freeze for GoogleCloudRunV2InstanceSplit
impl RefUnwindSafe for GoogleCloudRunV2InstanceSplit
impl Send for GoogleCloudRunV2InstanceSplit
impl Sync for GoogleCloudRunV2InstanceSplit
impl Unpin for GoogleCloudRunV2InstanceSplit
impl UnwindSafe for GoogleCloudRunV2InstanceSplit
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