content tier

content-directory-listing

Directory listings linking Party (Person) to directory contexts with domain-specific metadata

Directory listings linking Party (Person) to directory contexts with domain-specific metadata

Tiercontent
Roleunclassified (baselined)
Pathcrates/content/directory-listing
Edition2021
Targetscontent_directory_listing
Public items0 across 0 modules
Tests20

What it is for

Directory Listing Library crates

This crate provides library crates for linking a Person (from identity-parties) to directory contexts with domain-specific metadata.

# Design Principle

Follows the Person + DirectoryListing pattern (similar to User + Role):

# Example Usage

use content_directory_listing::{DirectoryListing, SubstituteOrganistMeta};
use uuid::Uuid;

// Create a listing for a person
let person_id = Uuid::new_v4();
let listing = DirectoryListing::new(person_id, "substitute_organist")
.with_metadata(serde_json::json!({
"services": "sunday", "funerals",
"instruments": "organ", "piano",
"area_coverage": "all"
}))
.with_status("approved");

// Parse domain-specific metadata
if let Some(meta) = listing.try_as_substitute_meta() {
println!("Services: {}", meta.services_display());
}

# Listing Types (validate at app layer, not DB)

# Status Values

Capabilities

No public items.

How to use it

From this crate's own rustdoc:

use content_directory_listing::{DirectoryListing, SubstituteOrganistMeta};
use uuid::Uuid;

// Create a listing for a person
let person_id = Uuid::new_v4();
let listing = DirectoryListing::new(person_id, "substitute_organist")
    .with_metadata(serde_json::json!({
        "services": ["sunday", "funerals"],
        "instruments": ["organ", "piano"],
        "area_coverage": "all"
    }))
    .with_status("approved");

// Parse domain-specific metadata
if let Some(meta) = listing.try_as_substitute_meta() {
    println!("Services: {}", meta.services_display());
}

Module structure

No public modules: the crate root is its whole surface.

Public surface

No public items.

Re-exports. Exported here, defined elsewhere.

ExportDefined in
DirectoryErrorerror::DirectoryError
DirectoryListinglisting::DirectoryListing
{BoardMemberMeta,ChapterMemberMeta,DeanTerm,OfficerMeta,OpenPositionMeta,PastDeanMeta,SubstituteOrganistMeta,VendorMeta,}metadata::{BoardMemberMeta,ChapterMemberMeta,DeanTerm,OfficerMeta,OpenPositionMeta,PastDeanMeta,SubstituteOrganistMeta,VendorMeta,}
{ListingStatus,ListingType}enums::{ListingStatus,ListingType}

Boundary

Reaches into foundation.

Shares tier content with 5 other crates: content-assets, content-calendar, content-calendar-recurrence, content-cms, content-notes.

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)content
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/content/directory-listing
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_content["content"] --> n_foundation["foundation"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`foundation-basemodels`foundationnoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
chrono^0.4serdenoalways
serde^1derivenoalways
serde_json^1noalways
thiserror^2noalways
uuid^1v4, serdenoalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
tokio-test^0.4noalways

Build. None.

Depended on by. 1 workspace crate.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  n_application_directory_listing["application-directory-listing"] -->|uses| SELF
  SELF["content-directory-listing"]
  SELF -->|runtime| n_foundation_basemodels["foundation-basemodels"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

FeatureEnablesOn by default
defaultyes
flowchart LR
  n_default["default"]

Targets

KindNameSource
libcontent_directory_listing`src/lib.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

1 workspace crate depends on this one: application-directory-listing.

Verification

KindCount
Unit tests20
Integration tests0
Examples0
Doctests1

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc00
Public modules with a //! block00

Metrics

MetricValue
Rust source files5
Source lines1154
Code lines759
Public API items0
Public modules0
Tests20
Examples0
Cargo features1
Direct runtime dependencies6
Workspace reverse dependencies1
pie showData
    title Rust source composition
    "Code" : 759
    "Blank or comment" : 395

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

All content · Manual