Skip to content

ChannelBinding

faststream.specification.schema.bindings.mqtt.ChannelBinding dataclass #

ChannelBinding(
    topic: str,
    qos: int = 0,
    retain: bool = False,
    bindingVersion: str = "0.2.0",
)

MQTT channel binding.

Per spec 0.2.0 the channel binding MUST NOT contain any properties. Fields are kept for backwards compatibility.

topic instance-attribute #

topic: str

qos class-attribute instance-attribute #

qos: int = 0

retain class-attribute instance-attribute #

retain: bool = False

bindingVersion class-attribute instance-attribute #

bindingVersion: str = '0.2.0'