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