pub struct DecodedTranslatorFrame {
pub collection: String,
pub doc_json: String,
pub peer: Option<String>,
}Expand description
ADR-059 Amendment 3 — payload returned in
DataReceivedResult::decoded_translator_frame when a 0xB6
translator frame decodes successfully on the receive dispatch.
Hosts (peat-atak-plugin and equivalents) forward populated entries
through their existing publish-with-origin FFI surface (e.g.
peat-ffi’s publishDocumentWithOriginJni(collection, doc_json, "ble")). Defined unconditionally — no #[cfg(feature = "translator-codec")]
— so the UniFFI binding shape is stable across feature combos.
Population only happens when translator-codec is on.
Fields§
§collection: StringBleTranslator collection name, e.g. "tracks" / "platforms".
doc_json: Stringserde-JSON serialization of the decoded Document — same shape
as the JSON callback variant from 0.3.1, just delivered via
struct return rather than callback invocation.
peer: Option<String>BLE peer identifier from the receive context (when known).
Trait Implementations§
Source§impl Clone for DecodedTranslatorFrame
impl Clone for DecodedTranslatorFrame
Source§fn clone(&self) -> DecodedTranslatorFrame
fn clone(&self) -> DecodedTranslatorFrame
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more