Source code for nix_daemon_protocol.query_substitutable_paths
"""QuerySubstitutablePaths operation — WireRequest/WireResponse types."""
from __future__ import annotations
from typing import ClassVar
from .store_path import StorePath
from .wire_message import WireField
from .wire_ops import WireRequest, WireResponse
[docs]
class QuerySubstitutablePathsResponse(WireResponse):
"""QuerySubstitutablePaths response — set of substitutable StorePaths."""
paths: set[StorePath] = WireField(default_factory=set)
[docs]
class QuerySubstitutablePathsRequest(WireRequest):
"""QuerySubstitutablePaths request — set of StorePaths to check."""
op: ClassVar[int] = 32
response_type = QuerySubstitutablePathsResponse
paths: set[StorePath] = WireField(default_factory=set)