Skip to content

Commit

Permalink
Improved seat massager sample
Browse files Browse the repository at this point in the history
  • Loading branch information
ashbeitz committed Mar 1, 2024
1 parent e4a73d0 commit 91b5eb1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions samples/seat_massager/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@

use serde_derive::{Deserialize, Serialize};

/// A targeted payload.
/// The targeting details helps on the receiver's side to dispatch the request.
#[derive(Serialize, Deserialize)]
pub struct TargetedPayload {
/// The instance id for the target entity.
pub instance_id: String,
/// The path within the target enttity to member that we are targetting.
pub member_path: String,
/// The operation to be performed on the target entity's member.
pub operation: String,
/// The operation's payload.
pub payload: String,
}

0 comments on commit 91b5eb1

Please sign in to comment.