pub struct InstanceSplit {
pub latest_revision: Option<bool>,
pub percent: Option<i32>,
pub revision_name: 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§
§latest_revision: Option<bool>Uses the “status.latestReadyRevisionName” to determine the instance split target. When it changes, workloads will automatically migrate from the prior “latest ready” revision to the new one.
percent: Option<i32>Optional. Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
revision_name: Option<String>Revision to which to assign this portion of instances.
Trait Implementations§
Source§impl Clone for InstanceSplit
impl Clone for InstanceSplit
Source§fn clone(&self) -> InstanceSplit
fn clone(&self) -> InstanceSplit
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 Debug for InstanceSplit
impl Debug for InstanceSplit
Source§impl Default for InstanceSplit
impl Default for InstanceSplit
Source§fn default() -> InstanceSplit
fn default() -> InstanceSplit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstanceSplit
impl<'de> Deserialize<'de> for InstanceSplit
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 Serialize for InstanceSplit
impl Serialize for InstanceSplit
impl Part for InstanceSplit
Auto Trait Implementations§
impl Freeze for InstanceSplit
impl RefUnwindSafe for InstanceSplit
impl Send for InstanceSplit
impl Sync for InstanceSplit
impl Unpin for InstanceSplit
impl UnwindSafe for InstanceSplit
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