diff --git a/samples/seat_massager/common/src/lib.rs b/samples/seat_massager/common/src/lib.rs index 1509b1fe..887b5224 100644 --- a/samples/seat_massager/common/src/lib.rs +++ b/samples/seat_massager/common/src/lib.rs @@ -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, }