#[non_exhaustive]pub struct ComponentDescriptionBuilder { /* private fields */ }
Implementations§
source§impl ComponentDescriptionBuilder
impl ComponentDescriptionBuilder
pub fn id(self, v: String) -> Self
pub fn image_ref(self, v: String) -> Self
pub fn name(self, v: String) -> Self
pub fn revision(self, v: i32) -> Self
pub fn max_instances(self, v: u32) -> Self
pub fn annotations(self, v: BTreeMap<String, String>) -> Self
pub fn build(self) -> Result<ComponentDescription, Box<dyn Error + Send + Sync>>
Trait Implementations§
source§impl Clone for ComponentDescriptionBuilder
impl Clone for ComponentDescriptionBuilder
source§fn clone(&self) -> ComponentDescriptionBuilder
fn clone(&self) -> ComponentDescriptionBuilder
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 Default for ComponentDescriptionBuilder
impl Default for ComponentDescriptionBuilder
source§fn default() -> ComponentDescriptionBuilder
fn default() -> ComponentDescriptionBuilder
Returns the “default value” for a type. Read more
impl Eq for ComponentDescriptionBuilder
impl StructuralPartialEq for ComponentDescriptionBuilder
Auto Trait Implementations§
impl Freeze for ComponentDescriptionBuilder
impl RefUnwindSafe for ComponentDescriptionBuilder
impl Send for ComponentDescriptionBuilder
impl Sync for ComponentDescriptionBuilder
impl Unpin for ComponentDescriptionBuilder
impl UnwindSafe for ComponentDescriptionBuilder
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.