Header menu logo FSharp.ATProto

Tid Module

Functions for creating, validating, and extracting data from Tid values.

Functions and values

Function or value Description

parse s

Full Usage: parse s

Parameters:
    s : string - A TID string that must be exactly 13 characters long, using the base32-sortable alphabet (234567abcdefghijklmnopqrstuvwxyz), with the first character restricted to [234567abcdefghij].

Returns: Result<Tid, string> Ok with a validated Tid, or Error with a message describing the validation failure. Validation failures include: null input, incorrect length (must be exactly 13), or invalid characters.

Parse and validate a TID string.

s : string

A TID string that must be exactly 13 characters long, using the base32-sortable alphabet (234567abcdefghijklmnopqrstuvwxyz), with the first character restricted to [234567abcdefghij].

Returns: Result<Tid, string>

Ok with a validated Tid, or Error with a message describing the validation failure. Validation failures include: null input, incorrect length (must be exactly 13), or invalid characters.

value arg1

Full Usage: value arg1

Parameters:
Returns: string The 13-character TID string.

Extract the string representation of a TID.

arg0 : Tid
Returns: string

The 13-character TID string.

Type something to start searching.