pub struct NodeResources {
pub cpu: Option<NodeCpuResources>,
pub devices: Option<Vec<NodeDeviceResource>>,
pub disk: Option<NodeDiskResources>,
pub max_dynamic_port: Option<i32>,
pub memory: Option<NodeMemoryResources>,
pub min_dynamic_port: Option<i32>,
pub networks: Option<Vec<NetworkResource>>,
}Fields§
§cpu: Option<NodeCpuResources>§devices: Option<Vec<NodeDeviceResource>>§disk: Option<NodeDiskResources>§max_dynamic_port: Option<i32>§memory: Option<NodeMemoryResources>§min_dynamic_port: Option<i32>§networks: Option<Vec<NetworkResource>>Trait Implementations§
Source§impl Clone for NodeResources
impl Clone for NodeResources
Source§fn clone(&self) -> NodeResources
fn clone(&self) -> NodeResources
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 NodeResources
impl Debug for NodeResources
Source§impl Default for NodeResources
impl Default for NodeResources
Source§fn default() -> NodeResources
fn default() -> NodeResources
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeResources
impl<'de> Deserialize<'de> for NodeResources
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 PartialEq for NodeResources
impl PartialEq for NodeResources
Source§impl Serialize for NodeResources
impl Serialize for NodeResources
impl StructuralPartialEq for NodeResources
Auto Trait Implementations§
impl Freeze for NodeResources
impl RefUnwindSafe for NodeResources
impl Send for NodeResources
impl Sync for NodeResources
impl Unpin for NodeResources
impl UnwindSafe for NodeResources
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