Skip to main content

Module rest

Module rest 

Source
Expand description

The PocketIC server and the PocketIc library interface with HTTP/JSON. The types in this module are used to serialize and deserialize data from and to JSON, and are used by both crates.

Modules§

base64

Structs§

ApiError
AutoProgressConfig
BinaryBlob
BlobId
CanisterHttpHeader
CanisterHttpReject
CanisterHttpReply
CanisterHttpRequest
CanisterIdRange
ExtendedSubnetConfigSet
HttpGatewayConfig
HttpGatewayDetails
HttpGatewayInfo
HttpsConfig
IcpConfig
Specifies ICP config of this instance.
IcpFeatures
Specifies ICP features enabled by deploying their corresponding system canisters when creating a PocketIC instance and keeping them up to date during the PocketIC instance lifetime. The subnets to which the corresponding system canisters are deployed must be empty, i.e., their corresponding field in ExtendedSubnetConfigSet must be None or Some(config) with config.state_config = SubnetStateConfig::New. An ICP feature is enabled if its IcpFeaturesConfig is provided, i.e., if the corresponding field is not None.
InstanceConfig
InstanceHttpGatewayConfig
MockCanisterHttpResponse
Mocked responses to a pending canister HTTP outcall made through the http_request management canister endpoint — whether fully replicated or non-replicated (see CanisterHttpReplication). A flexible outcall is answered with MockFlexibleCanisterHttpResponse instead.
MockFlexibleCanisterHttpResponse
Mocked responses to a pending flexible canister HTTP outcall, i.e. one made through the flexible_http_request management canister endpoint.
NamedSubnetIter
An iterator over the variants of NamedSubnet
RawAddCycles
RawCanisterCall
RawCanisterHttpRequest
RawCanisterId
RawCanisterSnapshotDownload
RawCanisterSnapshotId
RawCanisterSnapshotUpload
RawCycles
RawIngressStatusArgs
RawMessageId
RawMockCanisterHttpResponse
RawMockFlexibleCanisterHttpResponse
RawNodeId
RawPrincipalId
RawSenderInfo
RawSetStableMemory
RawStableMemory
RawSubnetBlockmakers
RawSubnetId
RawTickConfigs
RawTime
RawVerifyCanisterSigArg
StartedOrBusyResponse
SubnetConfig
Configuration details for a subnet, returned by PocketIc server
SubnetConfigSet
This represents which named subnets the user wants to create, and how many of the general app/system subnets, which are indistinguishable.
SubnetKindIter
An iterator over the variants of SubnetKind
SubnetSpec
Specifies various configurations for a subnet.
Topology

Enums§

ApiResponse
BlobCompression
CanisterCyclesCostSchedule
Specifies how to charge canisters for their use of computational resources (such as executing instructions, storing data, network, etc.).
CanisterHttpMethod
CanisterHttpPricingVersion
The pricing model applied to a canister HTTP outcall.
CanisterHttpReplication
How a canister HTTP outcall is replicated across the nodes of its subnet.
CanisterHttpResponse
CreateHttpGatewayResponse
CreateInstanceResponse
HttpGatewayBackend
IcpConfigFlag
IcpFeaturesConfig
IncompleteStateFlag
InitialTime
NamedSubnet
Named subnets have a fixed canister ID range on the IC mainnet and at most one instance per PocketIC instance.
RawCanisterResult
RawEffectivePrincipal
Relevant for calls to the management canister. If a subnet ID is provided, the call will be sent to the management canister of that subnet. If a canister ID is provided, the call will be sent to the management canister of the subnet where the canister is on. If None, the call will be sent to any management canister.
SubnetInstructionConfig
Specifies instruction limits for canister execution on this subnet.
SubnetKind
SubnetStateConfig
Specifies whether the subnet should be created from scratch or loaded from a path.

Type Aliases§

InstanceId
SubnetId