Skip to main content

Module org_id

Module org_id 

Source
Expand description

Tenant identifier newtype, transported via the X-Org-Id HTTP header.

§Example

use api_bones::org_id::OrgId;
use api_bones::header_id::HeaderId;

let id = OrgId::generate();
assert_eq!(id.inner().get_version_num(), 4);
assert_eq!(OrgId::HEADER_NAME, "X-Org-Id");

Structs§

OrgId
A UUID v4 tenant identifier, typically propagated via the X-Org-Id HTTP header.
OrgPath
An ordered org-path (root to self, inclusive), transported via X-Org-Path.

Enums§

OrgIdError
Error returned when parsing an OrgId from a string fails.