pub struct NodeUpdate {
pub label: Option<String>,
pub size: Option<f32>,
pub url: Option<String>,
pub red: Option<u8>,
pub green: Option<u8>,
pub blue: Option<u8>,
pub show_label: Option<bool>,
}
Expand description
Update type for the dRISK API.
Fields§
§label: Option<String>
§size: Option<f32>
§url: Option<String>
§red: Option<u8>
§green: Option<u8>
§blue: Option<u8>
§show_label: Option<bool>
Trait Implementations§
Source§impl AddAssign for NodeUpdate
impl AddAssign for NodeUpdate
Source§fn add_assign(&mut self, other: NodeUpdate)
fn add_assign(&mut self, other: NodeUpdate)
Performs the
+=
operation. Read moreSource§impl Clone for NodeUpdate
impl Clone for NodeUpdate
Source§fn clone(&self) -> NodeUpdate
fn clone(&self) -> NodeUpdate
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 NodeUpdate
impl Debug for NodeUpdate
Source§impl Default for NodeUpdate
impl Default for NodeUpdate
Source§fn default() -> NodeUpdate
fn default() -> NodeUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeUpdate
impl<'de> Deserialize<'de> for NodeUpdate
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 NodeUpdate
impl PartialEq for NodeUpdate
Source§impl Serialize for NodeUpdate
impl Serialize for NodeUpdate
impl StructuralPartialEq for NodeUpdate
Auto Trait Implementations§
impl Freeze for NodeUpdate
impl RefUnwindSafe for NodeUpdate
impl Send for NodeUpdate
impl Sync for NodeUpdate
impl Unpin for NodeUpdate
impl UnwindSafe for NodeUpdate
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