Exchange
faststream.specification.asyncapi.v2_6_0.schema.bindings.amqp.channel.Exchange #
Bases: BaseModel
A class to represent an exchange.
type instance-attribute #
type: Literal[
"default",
"direct",
"topic",
"fanout",
"headers",
"x-delayed-message",
"x-consistent-hash",
"x-modulus-hash",
]
from_spec classmethod #
from_spec(binding: None, vhost: str) -> None
from_spec(binding: Exchange, vhost: str) -> Self
from_spec(
binding: Exchange | None, vhost: str
) -> Self | None
Source code in faststream/specification/asyncapi/v2_6_0/schema/bindings/amqp/channel.py
87 88 89 90 91 92 93 94 95 96 97 98 | |