Skip to main content

new

Method
This is a method of the GatewayMessage class in the gateway module.
Create a new gateway message.

Signature

def new(
        content: impl Into<serde_json::Value>,
        sender_id: impl Into<String>,
        session_id: impl Into<String>,
    ) -> Self

Parameters

content
impl Into<serde_json::Value>
required
No description available.
sender_id
impl Into<String>
required
No description available.
session_id
impl Into<String>
required
No description available.

Returns

Returns
Self
The result of the operation.