Skip to content

OperationBinding

faststream.specification.asyncapi.v2_6_0.schema.bindings.nats.OperationBinding #

Bases: BaseModel

A class to represent an operation binding.

ATTRIBUTE DESCRIPTION
replyTo

optional dictionary containing reply information

bindingVersion

version of the binding (default is "custom")

replyTo class-attribute instance-attribute #

replyTo = None

bindingVersion class-attribute instance-attribute #

bindingVersion = 'custom'

from_sub classmethod #

from_sub(binding)
Source code in faststream/specification/asyncapi/v2_6_0/schema/bindings/nats/operation.py
@classmethod
def from_sub(cls, binding: nats.OperationBinding | None) -> Self | None:
    if not binding:
        return None

    return cls(
        replyTo=binding.reply_to,
    )

from_pub classmethod #

from_pub(binding)
Source code in faststream/specification/asyncapi/v2_6_0/schema/bindings/nats/operation.py
@classmethod
def from_pub(cls, binding: nats.OperationBinding | None) -> Self | None:
    if not binding:
        return None

    return cls(
        replyTo=binding.reply_to,
    )