Module types

Source
Expand description

Definitions for AT Protocol’s data models. https://atproto.com/specs/data-model

Modules§

string
Lexicon string formats.

Structs§

Blob
BoundedU8
An unsigned integer with a minimum value of MIN and a maximum value of MAX.
BoundedU16
An unsigned integer with a minimum value of MIN and a maximum value of MAX.
BoundedU32
An unsigned integer with a minimum value of MIN and a maximum value of MAX.
BoundedU64
An unsigned integer with a minimum value of MIN and a maximum value of MAX.
CidLink
Representation of an IPLD Link.
DataModel
LimitedNonZeroU8
An unsigned integer with a minimum value of 1 and a maximum value of MAX.
LimitedNonZeroU16
An unsigned integer with a minimum value of 1 and a maximum value of MAX.
LimitedNonZeroU32
An unsigned integer with a minimum value of 1 and a maximum value of MAX.
LimitedNonZeroU64
An unsigned integer with a minimum value of 1 and a maximum value of MAX.
LimitedU8
An unsigned integer with a maximum value of MAX.
LimitedU16
An unsigned integer with a maximum value of MAX.
LimitedU32
An unsigned integer with a maximum value of MAX.
LimitedU64
An unsigned integer with a maximum value of MAX.
Object
A generic object type.
UnTypedBlobRef
An untyped blob reference. Some records in the wild still contain this format, but should never write them.
UnknownData
Data with an unknown schema in an open Union.

Enums§

BlobRef
Definitions for Blob types. Usually a map with $type is used, but deprecated legacy formats are also supported for parsing. https://atproto.com/specs/data-model#blob-type
TypedBlobRef
Current, typed blob reference.
Union
An “open” union type.
Unknown
Arbitrary data with no specific validation and no type-specific fields.

Traits§

Collection
Trait for a collection of records that can be stored in a repository.
TryFromUnknown
Trait for types that can be deserialized from an Unknown value.
TryIntoUnknown
Trait for types that can be serialized into an Unknown value.