pub enum Message {
Show 13 variants
RegisterTriggerType {
id: String,
description: String,
},
RegisterTrigger {
id: String,
trigger_type: String,
function_id: String,
config: Value,
},
TriggerRegistrationResult {
id: String,
trigger_type: String,
function_id: String,
error: Option<ErrorBody>,
},
UnregisterTrigger {
id: String,
trigger_type: String,
},
UnregisterTriggerType {
id: String,
},
RegisterFunction {
id: String,
description: Option<String>,
request_format: Option<Value>,
response_format: Option<Value>,
metadata: Option<Value>,
invocation: Option<HttpInvocationConfig>,
},
UnregisterFunction {
id: String,
},
InvokeFunction {
invocation_id: Option<Uuid>,
function_id: String,
data: Value,
traceparent: Option<String>,
baggage: Option<String>,
action: Option<TriggerAction>,
},
InvocationResult {
invocation_id: Uuid,
function_id: String,
result: Option<Value>,
error: Option<ErrorBody>,
traceparent: Option<String>,
baggage: Option<String>,
},
RegisterService {
id: String,
name: String,
description: Option<String>,
parent_service_id: Option<String>,
},
Ping,
Pong,
WorkerRegistered {
worker_id: String,
},
}Variants§
RegisterTriggerType
RegisterTrigger
TriggerRegistrationResult
UnregisterTrigger
UnregisterTriggerType
RegisterFunction
Fields
§
invocation: Option<HttpInvocationConfig>UnregisterFunction
InvokeFunction
Fields
§
action: Option<TriggerAction>InvocationResult
Fields
RegisterService
Ping
Pong
WorkerRegistered
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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 Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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