Channel
faststream.specification.asyncapi.v3_0_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[dict[str, str]] | None = None,
) -> Self
Source code in faststream/specification/asyncapi/v3_0_0/schema/channels.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
from_pub classmethod #
from_pub(
publisher: PublisherSpec,
servers: list[dict[str, str]] | None = None,
) -> Self
Source code in faststream/specification/asyncapi/v3_0_0/schema/channels.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |