pub struct Dataref {
pub id: i64,
pub name: String,
pub value_type: DatarefValueType,
}Expand description
Dataref descriptor from the running simulator session.
JSON schema
{
"description": "Dataref descriptor from the running simulator session.",
"type": "object",
"required": [
"id",
"name",
"value_type"
],
"properties": {
"id": {
"description": "Session-local numeric identifier used to read, write, and subscribe to this dataref during the current simulator run.\n",
"type": "integer",
"format": "int64"
},
"name": {
"description": "Fully qualified dataref name.",
"type": "string"
},
"value_type": {
"description": "Dataref value kind: `float`, `double`, `int`, `int_array`, `float_array`, or `data` (binary represented as base64 text).\n",
"type": "string",
"enum": [
"float",
"double",
"int",
"int_array",
"float_array",
"data"
]
}
}
}Fields§
§id: i64Session-local numeric identifier used to read, write, and subscribe to this dataref during the current simulator run.
name: StringFully qualified dataref name.
value_type: DatarefValueTypeDataref value kind: float, double, int, int_array, float_array, or data (binary represented as base64 text).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dataref
impl<'de> Deserialize<'de> for Dataref
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
Auto Trait Implementations§
impl Freeze for Dataref
impl RefUnwindSafe for Dataref
impl Send for Dataref
impl Sync for Dataref
impl Unpin for Dataref
impl UnsafeUnpin for Dataref
impl UnwindSafe for Dataref
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