Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for Buterin (0.17 sec)

  1. docs/de/docs/tutorial/response-model.md

    `BaseUser` verfügt über die Basis-Felder. Dann erbt `UserIn` von `BaseUser` und fügt das Feld `Passwort` hinzu, sodass dass es nun alle Felder beider Modelle hat.
    
    Wir annotieren den Funktionsrückgabetyp als `BaseUser`, geben aber tatsächlich eine `UserIn`-Instanz zurück.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:58 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/response-model.md

    У модели `BaseUser` есть некоторые поля. Затем `UserIn` наследуется от `BaseUser` и добавляет новое поле `password`. Таким образом модель будет включать в себя все поля из первой модели (родителя), а также свои собственные.
    
    Мы аннотируем возвращаемый тип функции как `BaseUser`, но фактически мы будем возвращать объект типа `UserIn`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 30.5K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/extra-models.md

        ```
    
    ### Sobre `**user_in.dict()`
    
    #### O `.dict()` do Pydantic
    
    `user_in` é um modelo Pydantic da classe `UserIn`.
    
    Os modelos Pydantic possuem um método `.dict()` que retorna um `dict` com os dados do modelo.
    
    Então, se criarmos um objeto Pydantic `user_in` como:
    
    ```Python
    user_in = UserIn(username="john", password="secret", email="******@****.***")
    ```
    
    e depois chamarmos:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/extra-models.md

        ```
    
    ### 🔃 `**user_in.dict()`
    
    #### Pydantic `.dict()`
    
    `user_in` Pydantic 🏷 🎓 `UserIn`.
    
    Pydantic 🏷 ✔️ `.dict()` 👩‍🔬 👈 📨 `dict` ⏮️ 🏷 💽.
    
    , 🚥 👥 ✍ Pydantic 🎚 `user_in` 💖:
    
    ```Python
    user_in = UserIn(username="john", password="secret", email="******@****.***")
    ```
    
    & ⤴️ 👥 🤙:
    
    ```Python
    user_dict = user_in.dict()
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/response-model.md

    ❔ 🔨 👉 👷 ❓ ➡️ ✅ 👈 👅. 👶
    
    ### 🆎 ✍ & 🏭
    
    🥇 ➡️ 👀 ❔ 👨‍🎨, ✍ & 🎏 🧰 🔜 👀 👉.
    
    `BaseUser` ✔️ 🧢 🏑. ⤴️ `UserIn` 😖 ⚪️➡️ `BaseUser` & 🚮 `password` 🏑,, ⚫️ 🔜 🔌 🌐 🏑 ⚪️➡️ 👯‍♂️ 🏷.
    
    👥 ✍ 🔢 📨 🆎 `BaseUser`, ✋️ 👥 🤙 🛬 `UserIn` 👐.
    
    👨‍🎨, ✍, & 🎏 🧰 🏆 🚫 😭 🔃 👉 ↩️, ⌨ ⚖, `UserIn` 🏿 `BaseUser`, ❔ ⛓ ⚫️ *☑* 🆎 🕐❔ ⚫️❔ ⌛ 🕳 👈 `BaseUser`.
    
    ### FastAPI 💽 🖥
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 16K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/response-model.md

    !!! note "기술 세부사항"
        응답 모델은 함수의 타입 어노테이션 대신 이 매개변수로 선언하는데, 경로 함수가 실제 응답 모델을 반환하지 않고 `dict`, 데이터베이스 객체나 기타 다른 모델을 `response_model`을 사용하여 필드 제한과 직렬화를 수행하고 반환할 수 있기 때문입니다
    
    ## 동일한 입력 데이터 반환
    
    여기서 우리는 평문 비밀번호를 포함하는 `UserIn` 모델을 선언합니다:
    
    ```Python hl_lines="9  11"
    {!../../../docs_src/response_model/tutorial002.py!}
    ```
    
    그리고 이 모델을 사용하여 입력을 선언하고 같은 모델로 출력을 선언합니다:
    
    ```Python hl_lines="17-18"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/response-model.md

    但最重要的是:
    
    * 会将输出数据限制在该模型定义内。下面我们会看到这一点有多重要。
    
    !!! note "技术细节"
        响应模型在参数中被声明,而不是作为函数返回类型的注解,这是因为路径函数可能不会真正返回该响应模型,而是返回一个 `dict`、数据库对象或其他模型,然后再使用 `response_model` 来执行字段约束和序列化。
    
    ## 返回与输入相同的数据
    
    现在我们声明一个 `UserIn` 模型,它将包含一个明文密码属性。
    
    ```Python hl_lines="9  11"
    {!../../../docs_src/response_model/tutorial002.py!}
    ```
    
    我们正在使用此模型声明输入数据,并使用同一模型声明输出数据:
    
    ```Python hl_lines="17-18"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/response-model.md

    !!! note "技術詳細"
        レスポンスモデルは、関数の戻り値のアノテーションではなく、このパラメータで宣言されています。なぜなら、パス関数は実際にはそのレスポンスモデルを返すのではなく、`dict`やデータベースオブジェクト、あるいは他のモデルを返し、`response_model`を使用してフィールドの制限やシリアライズを行うからです。
    
    ## 同じ入力データの返却
    
    ここでは`UserIn`モデルを宣言しています。それには平文のパスワードが含まれています:
    
    ```Python hl_lines="9 11"
    {!../../../docs_src/response_model/tutorial002.py!}
    ```
    
    そして、このモデルを使用して入力を宣言し、同じモデルを使って出力を宣言しています:
    
    ```Python hl_lines="17 18"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top