GrpcMetadata QML Type

GrpcMetadata는 정렬되지 않은 멀티맵 컨테이너에 메타데이터를 저장하는 클래스입니다. 더 보기...

Import Statement: import QtGrpc
Since: Qt 6.7

속성

  • data : QVariantMap

상세 설명

메타데이터는 특정 통화 또는 채널에 대한 정보로 gRPC 호출 또는 채널(예: 인증 세부 정보)에 대한 정보로 키-값 쌍의 목록 형태로 제공되며, 키는 문자열이고 값은 일반적으로 문자열이지만 이진 데이터일 수도 있습니다. 이 클래스는 정렬되지 않은 컨테이너에 데이터를 저장할 수 있는 기능을 제공합니다. 또한 동일한 키로 여러 값을 저장할 수도 있습니다.

참고: 동일한 키로 여러 값을 설정하려면 쉼표 기호를 사용하세요.

속성 문서

data : QVariantMap

메타데이터 컨테이너에 대한 액세스를 제공하고 QML에서 QVariantMap 형식으로 설정합니다.

참고: 데이터는 REQUIRED 속성입니다. 객체 생성을 위해 설정해야 합니다.

참고: 쉼표 기호를 사용하여 동일한 키로 여러 값을 설정할 수 있습니다. 아래 예시를 참조하세요:

GrpcMetadata {
    id: grpcData
    data: ({ "user-name": "localhost, remotehost",
            "user-password": "qwerty, 123456"})
}

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.