pub struct ExampleBoard {
pub vendor: String,
pub name: String,
pub revision: Option<String>,
pub device_vendor: Option<String>,
pub device_name: Option<String>,
}Expand description
Represents an example board reference
Identifies a development board on which the example has been tested.
Fields§
§vendor: StringBoard vendor name
name: StringCommercial board name
revision: Option<String>Board revision
device_vendor: Option<String>Device vendor (deprecated since v1.1; prefer board’s mounted device)
device_name: Option<String>Device name (deprecated since v1.1)
Trait Implementations§
Source§impl Clone for ExampleBoard
impl Clone for ExampleBoard
Source§fn clone(&self) -> ExampleBoard
fn clone(&self) -> ExampleBoard
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 ExampleBoard
impl Debug for ExampleBoard
Source§impl Default for ExampleBoard
impl Default for ExampleBoard
Source§fn default() -> ExampleBoard
fn default() -> ExampleBoard
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExampleBoard
impl<'de> Deserialize<'de> for ExampleBoard
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 Eq for ExampleBoard
Source§impl PartialEq for ExampleBoard
impl PartialEq for ExampleBoard
Source§impl Serialize for ExampleBoard
impl Serialize for ExampleBoard
impl StructuralPartialEq for ExampleBoard
Auto Trait Implementations§
impl Freeze for ExampleBoard
impl RefUnwindSafe for ExampleBoard
impl Send for ExampleBoard
impl Sync for ExampleBoard
impl Unpin for ExampleBoard
impl UnsafeUnpin for ExampleBoard
impl UnwindSafe for ExampleBoard
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