pub struct ConfigUpdateParameters {
pub deep_update: bool,
pub retry_timeout: u32,
/* private fields */
}
Expand description
ConfigUpdateParameters
definition
See https://dimonoff.atlassian.net/wiki/spaces/F2/pages/306437652531/Devices+Commands#Configuration-Update
Fields§
§deep_update: bool
Apply all the new configurations if true. Apply only the diff otherwise.
retry_timeout: u32
Number of second before timeout.
Implementations§
Source§impl ConfigUpdateParameters
impl ConfigUpdateParameters
Sourcepub fn target_serial_number(&self) -> &str
pub fn target_serial_number(&self) -> &str
Returns the target device’s serial number.
Sourcepub const fn current_config(&self) -> &Value
pub const fn current_config(&self) -> &Value
Returns the device’s actual configuration.
Sourcepub const fn new_config(&self) -> &Value
pub const fn new_config(&self) -> &Value
Returns the device’s new configuration.
Trait Implementations§
Source§impl Clone for ConfigUpdateParameters
impl Clone for ConfigUpdateParameters
Source§fn clone(&self) -> ConfigUpdateParameters
fn clone(&self) -> ConfigUpdateParameters
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 ConfigUpdateParameters
impl Debug for ConfigUpdateParameters
Source§impl<'de> Deserialize<'de> for ConfigUpdateParameters
impl<'de> Deserialize<'de> for ConfigUpdateParameters
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 Hash for ConfigUpdateParameters
impl Hash for ConfigUpdateParameters
Source§impl PartialEq for ConfigUpdateParameters
impl PartialEq for ConfigUpdateParameters
Source§impl Serialize for ConfigUpdateParameters
impl Serialize for ConfigUpdateParameters
impl Eq for ConfigUpdateParameters
impl StructuralPartialEq for ConfigUpdateParameters
Auto Trait Implementations§
impl Freeze for ConfigUpdateParameters
impl RefUnwindSafe for ConfigUpdateParameters
impl Send for ConfigUpdateParameters
impl Sync for ConfigUpdateParameters
impl Unpin for ConfigUpdateParameters
impl UnwindSafe for ConfigUpdateParameters
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