pub struct WorkerPoolSpec {
pub instance_splits: Option<Vec<InstanceSplit>>,
pub template: Option<RevisionTemplate>,
}Expand description
WorkerPoolSpec holds the desired state of the WorkerPool’s template and instance splits.
This type is not used in any activity, and only used as part of another schema.
Fields§
§instance_splits: Option<Vec<InstanceSplit>>Specifies how to distribute instances over a collection of Revisions.
template: Option<RevisionTemplate>Holds the latest specification for the Revision to be stamped out.
Trait Implementations§
Source§impl Clone for WorkerPoolSpec
impl Clone for WorkerPoolSpec
Source§fn clone(&self) -> WorkerPoolSpec
fn clone(&self) -> WorkerPoolSpec
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 WorkerPoolSpec
impl Debug for WorkerPoolSpec
Source§impl Default for WorkerPoolSpec
impl Default for WorkerPoolSpec
Source§fn default() -> WorkerPoolSpec
fn default() -> WorkerPoolSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkerPoolSpec
impl<'de> Deserialize<'de> for WorkerPoolSpec
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 WorkerPoolSpec
impl Serialize for WorkerPoolSpec
impl Part for WorkerPoolSpec
Auto Trait Implementations§
impl Freeze for WorkerPoolSpec
impl RefUnwindSafe for WorkerPoolSpec
impl Send for WorkerPoolSpec
impl Sync for WorkerPoolSpec
impl Unpin for WorkerPoolSpec
impl UnwindSafe for WorkerPoolSpec
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