Channel
faststream.specification.asyncapi.v3_0_0.schema.Channel #
Bases: BaseModel
A class to represent a channel.
Configurations
model_config : configuration for the model (only applicable for Pydantic version 2) Config : configuration for the class (only applicable for Pydantic version 1)
from_sub classmethod #
from_sub(address: str, subscriber: SubscriberSpec) -> Self
Source code in faststream/specification/asyncapi/v3_0_0/schema/channels.py
from_pub classmethod #
from_pub(address: str, publisher: PublisherSpec) -> Self