Macros§
- wrap_
dalek_ 🔒type - Wraps one of the dalek types to enforce hex serialization
Structs§
- Bytes
Payload - A payload (see
PayloadTrait) that can only hold bytes. Probably only useful for asEndpointDetails::RequestType. - Cached
Response - Cached response
- Curve
Point - Wrapper around
curve25519_dalek::ristretto::CompressedRistrettoenforcing base16 serialization. - Error
Info - Information about an ErrorCode.
- NoPayload
- Use
NoPayloadasEndpointDetails::RequestTypeto indicate no payload is expected. - Responder
- The
actix_web::Responderused for almost all API endpoints,EndpointDetailstogether with an instance ofResult<EndpointDetails::ResponseType>. - Scalar
- Wrapper around
curve25519_dalek::scalar::Scalarenforcing base16 serialization. - Signing
Key - Wrapper around
ed25519_dalek::SigningKeyenforcing base16 serialization. - Verifying
Key - Wrapper around
ed25519_dalek::VerifyingKeyenforcing base16 serialization.
Enums§
- Error
Code - List of possible errors. We use error codes in favour of more descriptive strings, because error codes can be more easily processed by the calling code, should change less often, and can be easily translated.
- Payload
- Payload of a request or response to an api endpoint.
Traits§
- ApiResult
Ext - Extension trait for
Result<T,ErrorCode>. - Endpoint
Details - Details on a PubHubs server endpoint
- Payload
Trait - What’s expected from a
EndpointDetails::RequestType. - Result
Ext - Extension trait for
std::result::Result. - Result
Payload Trait - What’s expected from a
EndpointDetails::ResponseType.