pub struct Node {
pub name: Option<String>,
pub type_field: Option<u8>,
pub ip: Option<String>,
pub age: Option<u8>,
pub vid: Option<u32>,
}
Fields§
§name: Option<String>
Not a trick question, really just the name of the corresponding node
type_field: Option<u8>
‘a waste of space as we only have 5 types’ - the WLED source code
#define NODE_TYPE_ID_UNDEFINED 0 #define NODE_TYPE_ID_ESP8266 82 // should be 1 #define NODE_TYPE_ID_ESP32 32 // should be 2 #define NODE_TYPE_ID_ESP32S2 33 // etc #define NODE_TYPE_ID_ESP32S3 34 #define NODE_TYPE_ID_ESP32C3 35
Considering the above, this field may be changed by the time you are using this
ip: Option<String>
Not a trick question, really just IP address
age: Option<u8>
We have our top 4 engineers on the case, we’ll know aht this is in about 3 years
vid: Option<u32>
We have our top 4 engineers on the case, we’ll know aht this is in about 3 years
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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