#[non_exhaustive]pub struct HostInventoryBuilder { /* private fields */ }
Implementations§
source§impl HostInventoryBuilder
impl HostInventoryBuilder
pub fn friendly_name(self, v: String) -> Self
pub fn host_id(self, v: String) -> Self
pub fn version(self, v: String) -> Self
pub fn components(self, v: Vec<ComponentDescription>) -> Self
pub fn providers(self, v: Vec<ProviderDescription>) -> Self
pub fn uptime_human(self, v: String) -> Self
pub fn uptime_seconds(self, v: u64) -> Self
pub fn labels(self, v: BTreeMap<String, String>) -> Self
pub fn build(self) -> Result<HostInventory, Box<dyn Error + Send + Sync>>
Trait Implementations§
source§impl Clone for HostInventoryBuilder
impl Clone for HostInventoryBuilder
source§fn clone(&self) -> HostInventoryBuilder
fn clone(&self) -> HostInventoryBuilder
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 HostInventoryBuilder
impl Default for HostInventoryBuilder
source§fn default() -> HostInventoryBuilder
fn default() -> HostInventoryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for HostInventoryBuilder
impl PartialEq for HostInventoryBuilder
impl Eq for HostInventoryBuilder
impl StructuralPartialEq for HostInventoryBuilder
Auto Trait Implementations§
impl Freeze for HostInventoryBuilder
impl RefUnwindSafe for HostInventoryBuilder
impl Send for HostInventoryBuilder
impl Sync for HostInventoryBuilder
impl Unpin for HostInventoryBuilder
impl UnwindSafe for HostInventoryBuilder
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§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.