Skip to main content

Module ports

Module ports 

Source
Expand description

Service-layer ports used by command execution. Small service-layer ports and helpers.

This module exists to define the narrow interfaces the embeddable service layer needs from the outside world.

Contract:

  • ports should stay small and easy to mock
  • transport- or host-specific concerns belong in adapters, not in these traits
  • convenience mocks and fixtures belong under the owning port namespace, not as top-level crate modules

Modules§

mock
Test and example doubles for the port traits. Test and example doubles for the service-layer ports.

Traits§

LdapDirectory
Minimal LDAP lookup port used by the service layer.

Functions§

apply_filter_and_projection
Applies the lightweight LDAP filter/projection semantics used by the demo service layer.
parse_attributes
Parses the lightweight comma-separated attribute override syntax.