pub struct DeviceUpdate {
pub name: Option<String>,
pub prefs: Option<Value>,
}Expand description
PATCH /api/hardware/devices/:id request body.
Fields§
§name: Option<String>§prefs: Option<Value>Trait Implementations§
Source§impl Clone for DeviceUpdate
impl Clone for DeviceUpdate
Source§fn clone(&self) -> DeviceUpdate
fn clone(&self) -> DeviceUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeviceUpdate
impl Debug for DeviceUpdate
Source§impl Default for DeviceUpdate
impl Default for DeviceUpdate
Source§fn default() -> DeviceUpdate
fn default() -> DeviceUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceUpdate
impl<'de> Deserialize<'de> for DeviceUpdate
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 DeviceUpdate
impl PartialEq for DeviceUpdate
Source§impl Serialize for DeviceUpdate
impl Serialize for DeviceUpdate
impl StructuralPartialEq for DeviceUpdate
Auto Trait Implementations§
impl Freeze for DeviceUpdate
impl RefUnwindSafe for DeviceUpdate
impl Send for DeviceUpdate
impl Sync for DeviceUpdate
impl Unpin for DeviceUpdate
impl UnsafeUnpin for DeviceUpdate
impl UnwindSafe for DeviceUpdate
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