pub struct FlighthookMessage {
pub actor: String,
pub device: Option<String>,
pub raw_payload: Option<RawPayload>,
pub event: FlighthookEvent,
}Expand description
A single event on the unified bus.
Uses the FRP envelope shape: { actor, device?, event: { kind, ... } }.
actor is a flighthook extension field. FRP consumers ignore unknown fields.
Fields§
§actor: StringActor ID of the originator (e.g. “mevo.0”, “gspro.0”, “system”).
device: Option<String>FRP device identifier for the physical unit (e.g. the Mevo SSID). Present on shot lifecycle and device telemetry events; absent on system/config/actor-status events.
raw_payload: Option<RawPayload>§event: FlighthookEventImplementations§
Source§impl FlighthookMessage
impl FlighthookMessage
Sourcepub fn new(event: impl Into<FlighthookEvent>) -> Self
pub fn new(event: impl Into<FlighthookEvent>) -> Self
Create a new message. Use .actor(), .device(), and
.raw() / .raw_binary() to attach metadata.
pub fn actor(self, actor: impl Into<String>) -> Self
pub fn device(self, device: impl Into<String>) -> Self
pub fn raw(self, raw: RawPayload) -> Self
pub fn raw_binary(self, raw: Vec<u8>) -> Self
Trait Implementations§
Source§impl Clone for FlighthookMessage
impl Clone for FlighthookMessage
Source§fn clone(&self) -> FlighthookMessage
fn clone(&self) -> FlighthookMessage
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 FlighthookMessage
impl Debug for FlighthookMessage
Source§impl<'de> Deserialize<'de> for FlighthookMessage
impl<'de> Deserialize<'de> for FlighthookMessage
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 FlighthookMessage
impl RefUnwindSafe for FlighthookMessage
impl Send for FlighthookMessage
impl Sync for FlighthookMessage
impl Unpin for FlighthookMessage
impl UnsafeUnpin for FlighthookMessage
impl UnwindSafe for FlighthookMessage
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