Module fog_pack::types [−][src]
Various fog-pack content types.
The fog-pack serialization format has a number of special types, in addition to the usual primitive types:
- Null
- Bool
Int- any integer from -2^63 to 2^64-1- F32 - 32-bit floating point
- F64 - 64-bit floating point
- Bin - Binary byte sequences
- Str - UTF-8 strings
- Array - heterogeneous sequence of values
- Map - Ordered key-value map, with strings for keys
Time- a unix timestampHash- a cryptographic hashIdentity- a public signing keyStreamId- an identifier for a symmetric encryption keyLockId- a public key for encryptionDataLockbox- Encrypted general dataIdentityLockbox- An encrypted private signing keyStreamLockbox- An encrypted key for symmetric encryptionLockLockbox- An encrypted private key
A general structure for holding fog-pack data is Value. The non-owning
version of it is ValueRef.
Structs
| DataLockbox | General encrypted data. |
| DataLockboxRef | General encrypted data. |
| Hash | Crytographically secure hash of data. |
| Identity | An Identity, wrapping a public signing key. |
| IdentityLockbox | An encrypted |
| IdentityLockboxRef | An encrypted |
| Integer | Represents a fog-pack integer, whether signed or unsigned. |
| LockId | An identifier for a corresponding |
| LockLockbox | An encrypted |
| LockLockboxRef | An reference to an encrypted |
| StreamId | An identifier for a corresponding |
| StreamLockbox | An encrypted |
| StreamLockboxRef | An encrypted |
| Timestamp | Structure for holding a raw fog-pack timestamp. This stores time in some consistent internal format, which may or may not be UTC. UTC time can always be extracted from it. |
Enums
| Value | |
| ValueRef |