#[non_exhaustive]pub struct SystemInfoBuilder { /* private fields */ }Expand description
A builder for SystemInfo.
Implementations§
source§impl SystemInfoBuilder
impl SystemInfoBuilder
sourcepub fn set_os_info(self, input: Option<OsInfo>) -> Self
pub fn set_os_info(self, input: Option<OsInfo>) -> Self
Operating system corresponding to a server.
sourcepub fn get_os_info(&self) -> &Option<OsInfo>
pub fn get_os_info(&self) -> &Option<OsInfo>
Operating system corresponding to a server.
sourcepub fn file_system_type(self, input: impl Into<String>) -> Self
pub fn file_system_type(self, input: impl Into<String>) -> Self
File system type for the server.
sourcepub fn set_file_system_type(self, input: Option<String>) -> Self
pub fn set_file_system_type(self, input: Option<String>) -> Self
File system type for the server.
sourcepub fn get_file_system_type(&self) -> &Option<String>
pub fn get_file_system_type(&self) -> &Option<String>
File system type for the server.
sourcepub fn network_info_list(self, input: NetworkInfo) -> Self
pub fn network_info_list(self, input: NetworkInfo) -> Self
Appends an item to network_info_list.
To override the contents of this collection use set_network_info_list.
Networking information related to a server.
sourcepub fn set_network_info_list(self, input: Option<Vec<NetworkInfo>>) -> Self
pub fn set_network_info_list(self, input: Option<Vec<NetworkInfo>>) -> Self
Networking information related to a server.
sourcepub fn get_network_info_list(&self) -> &Option<Vec<NetworkInfo>>
pub fn get_network_info_list(&self) -> &Option<Vec<NetworkInfo>>
Networking information related to a server.
sourcepub fn cpu_architecture(self, input: impl Into<String>) -> Self
pub fn cpu_architecture(self, input: impl Into<String>) -> Self
CPU architecture type for the server.
sourcepub fn set_cpu_architecture(self, input: Option<String>) -> Self
pub fn set_cpu_architecture(self, input: Option<String>) -> Self
CPU architecture type for the server.
sourcepub fn get_cpu_architecture(&self) -> &Option<String>
pub fn get_cpu_architecture(&self) -> &Option<String>
CPU architecture type for the server.
sourcepub fn build(self) -> SystemInfo
pub fn build(self) -> SystemInfo
Consumes the builder and constructs a SystemInfo.
Trait Implementations§
source§impl Clone for SystemInfoBuilder
impl Clone for SystemInfoBuilder
source§fn clone(&self) -> SystemInfoBuilder
fn clone(&self) -> SystemInfoBuilder
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 SystemInfoBuilder
impl Debug for SystemInfoBuilder
source§impl Default for SystemInfoBuilder
impl Default for SystemInfoBuilder
source§fn default() -> SystemInfoBuilder
fn default() -> SystemInfoBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SystemInfoBuilder
impl PartialEq for SystemInfoBuilder
source§fn eq(&self, other: &SystemInfoBuilder) -> bool
fn eq(&self, other: &SystemInfoBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SystemInfoBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SystemInfoBuilder
impl Send for SystemInfoBuilder
impl Sync for SystemInfoBuilder
impl Unpin for SystemInfoBuilder
impl UnwindSafe for SystemInfoBuilder
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.