Skip to content

Messaging models#

pubtools.sign.models.msg.MsgMessage#

Messaging message model.

Attributes:

Name Type Description
headers Dict[str, Any]

Headers of the message.

address str

Address to which the message is sent.

body Dict[str, Any]

Body of the message.

Source code in pubtools/sign/models/msg.py
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
@dataclasses.dataclass
class MsgMessage:
    """Messaging message model.

    Attributes:
        headers (Dict[str, Any]): Headers of the message.
        address (str): Address to which the message is sent.
        body (Dict[str, Any]): Body of the message.
    """

    headers: Dict[str, Any]
    address: str
    body: Dict[str, Any]