Source code for nix_daemon_protocol.query_path_from_hash_part
"""QueryPathFromHashPart operation — WireRequest/WireResponse types."""
from __future__ import annotations
from typing import ClassVar
from .store_path import StorePath
from .wire_ops import WireRequest, WireResponse
[docs]
class QueryPathFromHashPartResponse(WireResponse):
"""QueryPathFromHashPart response — resolved StorePath."""
value: StorePath
[docs]
class QueryPathFromHashPartRequest(WireRequest):
"""QueryPathFromHashPart request — hash prefix string (NOT a StorePath)."""
op: ClassVar[int] = 29
response_type = QueryPathFromHashPartResponse
path: str