pub struct WeightDevice {
pub path: Option<String>,
pub weight: Option<i32>,
}Expand description
WeightDevice is a structure that holds device:weight pair
Fields§
§path: Option<String>§weight: Option<i32>Implementations§
Source§impl WeightDevice
impl WeightDevice
pub fn new() -> WeightDevice
Trait Implementations§
Source§impl Clone for WeightDevice
impl Clone for WeightDevice
Source§fn clone(&self) -> WeightDevice
fn clone(&self) -> WeightDevice
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 WeightDevice
impl Debug for WeightDevice
Source§impl<'de> Deserialize<'de> for WeightDevice
impl<'de> Deserialize<'de> for WeightDevice
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 FromStr for WeightDevice
Converts Query Parameters representation (style=form, explode=false) to a WeightDevice value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for WeightDevice
Converts Query Parameters representation (style=form, explode=false) to a WeightDevice value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for WeightDevice
impl PartialEq for WeightDevice
Source§impl Serialize for WeightDevice
impl Serialize for WeightDevice
Source§impl ToString for WeightDevice
Converts the WeightDevice value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for WeightDevice
Converts the WeightDevice value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for WeightDevice
impl Validate for WeightDevice
Source§impl<'v_a> ValidateArgs<'v_a> for WeightDevice
impl<'v_a> ValidateArgs<'v_a> for WeightDevice
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