#[non_exhaustive]pub struct ScaleComponentCommandBuilder { /* private fields */ }
Expand description
Builder that produces ScaleComponentCommand
s
Implementations§
source§impl ScaleComponentCommandBuilder
impl ScaleComponentCommandBuilder
pub fn new() -> Self
pub fn component_ref(self, v: &str) -> Self
pub fn component_id(self, v: &str) -> Self
pub fn annotations(self, v: impl Into<BTreeMap<String, String>>) -> Self
pub fn max_instances(self, v: u32) -> Self
pub fn host_id(self, v: &str) -> Self
pub fn config(self, v: Vec<String>) -> Self
pub fn allow_update(self, v: bool) -> Self
pub fn build( self, ) -> Result<ScaleComponentCommand, Box<dyn Error + Send + Sync>>
Trait Implementations§
source§impl Clone for ScaleComponentCommandBuilder
impl Clone for ScaleComponentCommandBuilder
source§fn clone(&self) -> ScaleComponentCommandBuilder
fn clone(&self) -> ScaleComponentCommandBuilder
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 ScaleComponentCommandBuilder
impl Debug for ScaleComponentCommandBuilder
source§impl Default for ScaleComponentCommandBuilder
impl Default for ScaleComponentCommandBuilder
source§fn default() -> ScaleComponentCommandBuilder
fn default() -> ScaleComponentCommandBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ScaleComponentCommandBuilder
impl PartialEq for ScaleComponentCommandBuilder
source§fn eq(&self, other: &ScaleComponentCommandBuilder) -> bool
fn eq(&self, other: &ScaleComponentCommandBuilder) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for ScaleComponentCommandBuilder
impl StructuralPartialEq for ScaleComponentCommandBuilder
Auto Trait Implementations§
impl Freeze for ScaleComponentCommandBuilder
impl RefUnwindSafe for ScaleComponentCommandBuilder
impl Send for ScaleComponentCommandBuilder
impl Sync for ScaleComponentCommandBuilder
impl Unpin for ScaleComponentCommandBuilder
impl UnwindSafe for ScaleComponentCommandBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.