Channel
faststream.specification.asyncapi.v2_6_0.schema.channels.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(
subscriber: SubscriberSpec,
servers: list[str] | None = None,
) -> Self
Source code in faststream/specification/asyncapi/v2_6_0/schema/channels.py
43 44 45 46 47 48 49 50 51 52 53 | |
from_pub classmethod #
from_pub(
publisher: PublisherSpec,
servers: list[str] | None = None,
) -> Self
Source code in faststream/specification/asyncapi/v2_6_0/schema/channels.py
55 56 57 58 59 60 61 62 63 | |