Struct podman_rest_client::models::WeightDevice
source · pub struct WeightDevice {
pub path: Option<String>,
pub weight: Option<i32>,
}
Expand description
WeightDevice : WeightDevice is a structure that holds device:weight pair
Fields§
§path: Option<String>
§weight: Option<i32>
Implementations§
source§impl WeightDevice
impl WeightDevice
sourcepub fn new() -> WeightDevice
pub fn new() -> WeightDevice
WeightDevice is a structure that holds device:weight pair
Trait Implementations§
source§impl Clone for WeightDevice
impl Clone for WeightDevice
source§fn clone(&self) -> WeightDevice
fn clone(&self) -> WeightDevice
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 WeightDevice
impl Debug for WeightDevice
source§impl Default for WeightDevice
impl Default for WeightDevice
source§fn default() -> WeightDevice
fn default() -> WeightDevice
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WeightDevice
impl<'de> Deserialize<'de> for WeightDevice
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WeightDevice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WeightDevice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for WeightDevice
impl PartialEq for WeightDevice
source§fn eq(&self, other: &WeightDevice) -> bool
fn eq(&self, other: &WeightDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WeightDevice
impl Serialize for WeightDevice
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for WeightDevice
Auto Trait Implementations§
impl Freeze for WeightDevice
impl RefUnwindSafe for WeightDevice
impl Send for WeightDevice
impl Sync for WeightDevice
impl Unpin for WeightDevice
impl UnwindSafe for WeightDevice
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)