1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/// A request to deliver a message to a guest module
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeliverMessage {
    #[prost(message, optional, tag="1")]
    pub message: ::std::option::Option<BrokerMessage>,
}
/// A request to publish a message from a guest module
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublishMessage {
    #[prost(message, optional, tag="2")]
    pub message: ::std::option::Option<BrokerMessage>,
}
/// A representation of a broker message
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BrokerMessage {
    /// The subject on which the broker message resides
    #[prost(string, tag="1")]
    pub subject: std::string::String,
    /// A reply-to for the message (empty if not applicable)
    #[prost(string, tag="2")]
    pub reply_to: std::string::String,
    /// The body of the message as a blob of bytes
    #[prost(bytes, tag="3")]
    pub body: std::vec::Vec<u8>,
}
/// A request for the broker to make a request-and-reply publication. Inbox management
/// is handled by the plugin implementation, not by the guest module
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestMessage {
    /// Subject on which message is published
    #[prost(string, tag="1")]
    pub subject: std::string::String,
    /// The body of the message
    #[prost(bytes, tag="2")]
    pub body: std::vec::Vec<u8>,
    /// Timeout, in milliseconds, to await a response
    #[prost(int64, tag="3")]
    pub timeout_ms: i64,
}