pub struct NodeResources {
pub cpu: Option<i32>,
pub memory_mb: Option<i32>,
pub disk_mb: Option<i32>,
}Expand description
Node resources
Fields§
§cpu: Option<i32>§memory_mb: Option<i32>§disk_mb: Option<i32>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<'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
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