NameRequired
faststream.broker.schemas.NameRequired #
Bases: BaseModel
A class to represent a required name.
METHOD | DESCRIPTION |
---|---|
__eq__ | object) -> bool: Check if the given value is equal to the current instance. |
validate | Type[NameRequiredCls], value: Union[str, NameRequiredCls]) -> NameRequiredCls: Validate the given value and return a NameRequiredCls instance. |
validate | Type[NameRequiredCls], value: None) -> None: Validate the given value and return None. |
validate | Type[NameRequiredCls], value: Union[str, NameRequiredCls, None]) -> Optional[NameRequiredCls]: Validate the given value and return an optional NameRequiredCls instance. |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
This is a Python function.
PARAMETER | DESCRIPTION |
---|---|
name | The name of the object. TYPE: |
**kwargs | Additional keyword arguments. TYPE: |
RETURNS | DESCRIPTION |
---|---|
None | None. |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
Source code in faststream/broker/schemas.py
validate classmethod
#
Validates a value.
PARAMETER | DESCRIPTION |
---|---|
value | The value to be validated. |
RETURNS | DESCRIPTION |
---|---|
Optional[NameRequiredCls] | The validated value. |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)