pub struct OPEN_DRONE_ID_AUTHENTICATION_DATA {
pub timestamp: u32,
pub target_system: u8,
pub target_component: u8,
pub id_or_mac: [u8; 20],
pub authentication_type: MavOdidAuthType,
pub data_page: u8,
pub last_page_index: u8,
pub length: u8,
pub authentication_data: [u8; 23],
}
ualberta
only.Expand description
id: 12902 Data for filling the OpenDroneID Authentication message. The Authentication Message defines a field that can provide a means of authenticity for the identity of the UAS (Unmanned Aircraft System). The Authentication message can have two different formats. For data page 0, the fields PageCount, Length and TimeStamp are present and AuthData is only 17 bytes. For data page 1 through 15, PageCount, Length and TimeStamp are not present and the size of AuthData is 23 bytes..
Fields§
§timestamp: u32
This field is only present for page 0. 32 bit Unix Timestamp in seconds since 00:00:00 01/01/2019..
target_system: u8
System ID (0 for broadcast)..
target_component: u8
Component ID (0 for broadcast)..
id_or_mac: [u8; 20]
Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html..
authentication_type: MavOdidAuthType
Indicates the type of authentication..
data_page: u8
Allowed range is 0 - 15..
last_page_index: u8
This field is only present for page 0. Allowed range is 0 - 15. See the description of struct ODID_Auth_data at https://github.com/opendroneid/opendroneid-core-c/blob/master/libopendroneid/opendroneid.h..
length: u8
This field is only present for page 0. Total bytes of authentication_data from all data pages. See the description of struct ODID_Auth_data at https://github.com/opendroneid/opendroneid-core-c/blob/master/libopendroneid/opendroneid.h..
authentication_data: [u8; 23]
Opaque authentication data. For page 0, the size is only 17 bytes. For other pages, the size is 23 bytes. Shall be filled with nulls in the unused portion of the field..
Implementations§
source§impl OPEN_DRONE_ID_AUTHENTICATION_DATA
impl OPEN_DRONE_ID_AUTHENTICATION_DATA
pub const ENCODED_LEN: usize = 53usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for OPEN_DRONE_ID_AUTHENTICATION_DATA
impl Clone for OPEN_DRONE_ID_AUTHENTICATION_DATA
source§fn clone(&self) -> OPEN_DRONE_ID_AUTHENTICATION_DATA
fn clone(&self) -> OPEN_DRONE_ID_AUTHENTICATION_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de> Deserialize<'de> for OPEN_DRONE_ID_AUTHENTICATION_DATA
impl<'de> Deserialize<'de> for OPEN_DRONE_ID_AUTHENTICATION_DATA
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>,
source§impl MessageData for OPEN_DRONE_ID_AUTHENTICATION_DATA
impl MessageData for OPEN_DRONE_ID_AUTHENTICATION_DATA
const ID: u32 = 12_902u32
const NAME: &'static str = "OPEN_DRONE_ID_AUTHENTICATION"
const EXTRA_CRC: u8 = 140u8
const ENCODED_LEN: usize = 53usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for OPEN_DRONE_ID_AUTHENTICATION_DATA
impl PartialEq for OPEN_DRONE_ID_AUTHENTICATION_DATA
source§fn eq(&self, other: &OPEN_DRONE_ID_AUTHENTICATION_DATA) -> bool
fn eq(&self, other: &OPEN_DRONE_ID_AUTHENTICATION_DATA) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for OPEN_DRONE_ID_AUTHENTICATION_DATA
Auto Trait Implementations§
impl Freeze for OPEN_DRONE_ID_AUTHENTICATION_DATA
impl RefUnwindSafe for OPEN_DRONE_ID_AUTHENTICATION_DATA
impl Send for OPEN_DRONE_ID_AUTHENTICATION_DATA
impl Sync for OPEN_DRONE_ID_AUTHENTICATION_DATA
impl Unpin for OPEN_DRONE_ID_AUTHENTICATION_DATA
impl UnwindSafe for OPEN_DRONE_ID_AUTHENTICATION_DATA
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)