pub struct BeaconContent {
pub hwid: String,
pub type: Type,
pub dm: Option<String>,
}Fields§
§hwid: StringHardware ID of the beacon that was detected
type: TypeType of beacon event.
dm: Option<String>Device message of beacon that was detected.
Implementations§
Source§impl BeaconContent
impl BeaconContent
pub fn new(hwid: String, type: Type) -> BeaconContent
Trait Implementations§
Source§impl Clone for BeaconContent
impl Clone for BeaconContent
Source§fn clone(&self) -> BeaconContent
fn clone(&self) -> BeaconContent
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 BeaconContent
impl Debug for BeaconContent
Source§impl Default for BeaconContent
impl Default for BeaconContent
Source§fn default() -> BeaconContent
fn default() -> BeaconContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BeaconContent
impl<'de> Deserialize<'de> for BeaconContent
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 BeaconContent
impl PartialEq for BeaconContent
Source§impl Serialize for BeaconContent
impl Serialize for BeaconContent
impl StructuralPartialEq for BeaconContent
Auto Trait Implementations§
impl Freeze for BeaconContent
impl RefUnwindSafe for BeaconContent
impl Send for BeaconContent
impl Sync for BeaconContent
impl Unpin for BeaconContent
impl UnwindSafe for BeaconContent
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